@Override public void deleteGroup(final long groupId) throws SGroupNotFoundException, SGroupDeletionException { final SGroup group = getGroup(groupId); this.deleteGroup(group); }
@Override public void deleteGroup(final long groupId) throws SGroupNotFoundException, SGroupDeletionException { final SGroup group = getGroup(groupId); this.deleteGroup(group); }
@Override public List<SGroup> getGroupChildren(final long groupId, final int fromIndex, final int numberOfGroups) throws SIdentityException { try { final SGroup group = getGroup(groupId); return persistenceService.selectList(SelectDescriptorBuilder.getChildrenOfGroup(group, fromIndex, numberOfGroups)); } catch (final SBonitaReadException e) { throw new SIdentityException("Can't get the children of the group", e); } }
@Override public List<SGroup> getGroupChildren(final long groupId, final int fromIndex, final int numberOfGroups, final String field, final OrderByType order) throws SIdentityException { try { final SGroup group = getGroup(groupId); return persistenceService.selectList(SelectDescriptorBuilder.getChildrenOfGroup(group, field, order, fromIndex, numberOfGroups)); } catch (final SBonitaReadException e) { throw new SIdentityException("Can't get the children of the group", e); } }
@Override public List<SGroup> getGroupChildren(final long groupId, final int fromIndex, final int numberOfGroups) throws SIdentityException { try { final SGroup group = getGroup(groupId); return persistenceService.selectList(SelectDescriptorBuilder.getChildrenOfGroup(group, fromIndex, numberOfGroups)); } catch (final SBonitaReadException e) { throw new SIdentityException("Can't get the children of the group", e); } }
@Override public List<SGroup> getGroupChildren(final long groupId, final int fromIndex, final int numberOfGroups, final String field, final OrderByType order) throws SIdentityException { try { final SGroup group = getGroup(groupId); return persistenceService.selectList(SelectDescriptorBuilder.getChildrenOfGroup(group, field, order, fromIndex, numberOfGroups)); } catch (final SBonitaReadException e) { throw new SIdentityException("Can't get the children of the group", e); } }
@Override public long getNumberOfGroupChildren(final long parentGroupId) throws SIdentityException { try { final SGroup parentGroup = getGroup(parentGroupId); return persistenceService.selectOne(SelectDescriptorBuilder.getNumberOfGroupChildren(parentGroup.getPath())); } catch (final SBonitaReadException e) { throw new SIdentityException("Can't get the number children of group", e); } }
@Override public long getNumberOfGroupChildren(final long parentGroupId) throws SIdentityException { try { final SGroup parentGroup = getGroup(parentGroupId); return persistenceService.selectOne(SelectDescriptorBuilder.getNumberOfGroupChildren(parentGroup.getPath())); } catch (final SBonitaReadException e) { throw new SIdentityException("Can't get the number children of group", e); } }