/* * (non-Javadoc) * * @see cc.kune.core.server.manager.GroupManager#count() */ @Override @KuneTransactional public Long count() { return finder.count(); // NOTE The problem with super.size, is that uses JPA normal transactions // (no KuneTransactional) and // can block if it's under a KuneTransactional method. Normal JPA // transactions don't use the Guice Units of work // return super.size(); }
/* * (non-Javadoc) * * @see * cc.kune.core.server.manager.GroupManager#findEnabledTools(java.lang.Long) */ @Override public List<String> findEnabledTools(final Long id) { return finder.findEnabledTools(id); }
/* * (non-Javadoc) * * @see * cc.kune.core.server.manager.GroupManager#findCollabInGroups(java.lang.Long) */ @Override public Set<Group> findCollabInGroups(final Long groupId) { return finder.findCollabInGroups(groupId); }
/* * (non-Javadoc) * * @see * cc.kune.core.server.manager.GroupManager#findByShortName(java.lang.String) */ @Override public Group findByShortName(final String shortName) { return finder.findByShortName(shortName); }
/* * (non-Javadoc) * * @see * cc.kune.core.server.manager.GroupManager#checkIfShortNameAreInUse(java. * lang.String) */ @Override public void checkIfShortNameAreInUse(final String shortName) { if (finder.countByShortName(shortName) != 0) { throw new GroupShortNameInUseException(); } }
/* * (non-Javadoc) * * @see * cc.kune.core.server.manager.GroupManager#checkIfLongNameAreInUse(java.lang * .String) */ @Override public void checkIfLongNameAreInUse(final String longName) { if (finder.countByLongName(longName) != 0) { throw new GroupLongNameInUseException(); } }