checkAuthorization(Permissions.CREATE, Resources.GROUP, null);
return new GroupEntity(groupId);
}
public GroupEntity saveGroup(Group group) {
GroupEntity groupEntity = (GroupEntity) group;
if(groupEntity.getRevision() == 0) {
checkAuthorization(Permissions.CREATE, Resources.GROUP, null);
getDbEntityManager().insert(groupEntity);
createDefaultAuthorizations(group);
} else {
checkAuthorization(Permissions.UPDATE, Resources.GROUP, group.getId());