Example #1
0
 /*
  * (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();
 }
Example #2
0
 /*
  * (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);
 }
Example #3
0
 /*
  * (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);
 }
Example #4
0
 /*
  * (non-Javadoc)
  *
  * @see
  * cc.kune.core.server.manager.GroupManager#findByShortName(java.lang.String)
  */
 @Override
 public Group findByShortName(final String shortName) {
   return finder.findByShortName(shortName);
 }
Example #5
0
 /*
  * (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();
   }
 }
Example #6
0
 /*
  * (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();
   }
 }