* @param clz
* after this call the current user (in the {@link OBContext}) will have read/write
* access to this class.
*/
protected void addReadWriteAccess(Class<?> clz) {
final Entity entity = ModelProvider.getInstance().getEntity(clz);
if (!OBContext.getOBContext().getEntityAccessChecker().getWritableEntities().contains(entity)) {
OBContext.getOBContext().getEntityAccessChecker().getWritableEntities().add(entity);
}
if (!OBContext.getOBContext().getEntityAccessChecker().getReadableEntities().contains(entity)) {
OBContext.getOBContext().getEntityAccessChecker().getReadableEntities().add(entity);