Package org.exoplatform.commons.exception

Examples of org.exoplatform.commons.exception.UniqueObjectException


      query.addEQ("GROUP_ID", groupId);
      Group o = super.loadUnique(connection, query.toQuery());
      if (o != null)
      {
         Object[] args = {child.getGroupName()};
         throw new UniqueObjectException("OrganizationService.unique-group-exception", args);
      }

      if (broadcast)
         listenerService_.broadcast("organization.group.preSave", this, childImpl);
      childImpl.setId(groupId);
View Full Code Here


      Object o = findGroupById(groupId);
      if (o != null)
      {
         Object[] args = {child.getGroupName()};
         throw new UniqueObjectException("OrganizationService.unique-group-exception", args);
      }
      childImpl.setId(groupId);

      if (broadcast)
         preSave(child, true);
View Full Code Here

      Object o = findGroupById(groupId);
      if (o != null)
      {
         Object[] args = {child.getGroupName()};
         throw new UniqueObjectException("OrganizationService.unique-group-exception", args);
      }
      childImpl.setId(groupId);

      if (broadcast)
         preSave(child, true);
View Full Code Here

      query.addEQ("GROUP_ID", groupId);
      Group o = super.loadUnique(connection, query.toQuery());
      if (o != null)
      {
         Object[] args = {child.getGroupName()};
         throw new UniqueObjectException("OrganizationService.unique-group-exception", args);
      }

      if (broadcast)
         listenerService_.broadcast("organization.group.preSave", this, childImpl);
      childImpl.setId(groupId);
View Full Code Here

      Object o = findGroupById(groupId);
      if (o != null)
      {
         Object[] args = {child.getGroupName()};
         throw new UniqueObjectException("OrganizationService.unique-group-exception", args);
      }
      childImpl.setId(groupId);

      if (broadcast)
         preSave(child, true);
View Full Code Here

      query.addLIKE("GROUP_ID", groupId);
      Group o = super.loadUnique(connection, query.toQuery());
      if (o != null)
      {
         Object[] args = {child.getGroupName()};
         throw new UniqueObjectException("OrganizationService.unique-group-exception", args);
      }

      if (broadcast)
         listenerService_.broadcast("organization.group.preSave", this, childImpl);
      childImpl.setId(groupId);
View Full Code Here

      }
      Object o = session.get(GroupImpl.class, groupId);
      if (o != null)
      {
         Object[] args = {child.getGroupName()};
         throw new UniqueObjectException("OrganizationService.unique-group-exception", args);
      }
      if (broadcast)
         preSave(child, true);
      childImpl.setId(groupId);
View Full Code Here

      }
      Object o = session.get(GroupImpl.class, groupId);
      if (o != null)
      {
         Object[] args = {child.getGroupName()};
         throw new UniqueObjectException("OrganizationService.unique-group-exception", args);
      }
      if (broadcast)
         preSave(child, true);
      childImpl.setId(groupId);
      session.save(childImpl);
View Full Code Here

      query.addLIKE("GROUP_ID", groupId);
      Group o = super.loadUnique(connection, query.toQuery());
      if (o != null)
      {
         Object[] args = {child.getGroupName()};
         throw new UniqueObjectException("OrganizationService.unique-group-exception", args);
      }

      if (broadcast)
         listenerService_.broadcast("organization.group.preSave", this, childImpl);
      childImpl.setId(groupId);
View Full Code Here

TOP

Related Classes of org.exoplatform.commons.exception.UniqueObjectException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.