com.liferay.portal.service.persistence
Class UserGroupPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.UserGroup>
      extended by com.liferay.portal.service.persistence.UserGroupPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.UserGroup>, com.liferay.portal.service.persistence.UserGroupPersistence

public class UserGroupPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.UserGroup>
implements com.liferay.portal.service.persistence.UserGroupPersistence

The persistence implementation for the user group service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
UserGroupPersistence, UserGroupUtil
Generated:

Nested Class Summary
protected  class UserGroupPersistenceImpl.AddGroup
           
protected  class UserGroupPersistenceImpl.AddTeam
           
protected  class UserGroupPersistenceImpl.AddUser
           
protected  class UserGroupPersistenceImpl.ClearGroups
           
protected  class UserGroupPersistenceImpl.ClearTeams
           
protected  class UserGroupPersistenceImpl.ClearUsers
           
protected  class UserGroupPersistenceImpl.ContainsGroup
           
protected  class UserGroupPersistenceImpl.ContainsTeam
           
protected  class UserGroupPersistenceImpl.ContainsUser
           
protected  class UserGroupPersistenceImpl.RemoveGroup
           
protected  class UserGroupPersistenceImpl.RemoveTeam
           
protected  class UserGroupPersistenceImpl.RemoveUser
           
 
Field Summary
protected  com.liferay.portal.service.persistence.AccountPersistence accountPersistence
           
protected  UserGroupPersistenceImpl.AddGroup addGroup
           
protected  com.liferay.portal.service.persistence.AddressPersistence addressPersistence
           
protected  UserGroupPersistenceImpl.AddTeam addTeam
           
protected  UserGroupPersistenceImpl.AddUser addUser
           
protected  com.liferay.portal.service.persistence.BrowserTrackerPersistence browserTrackerPersistence
           
protected  com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence
           
protected  UserGroupPersistenceImpl.ClearGroups clearGroups
           
protected  UserGroupPersistenceImpl.ClearTeams clearTeams
           
protected  UserGroupPersistenceImpl.ClearUsers clearUsers
           
protected  com.liferay.portal.service.persistence.ClusterGroupPersistence clusterGroupPersistence
           
protected  com.liferay.portal.service.persistence.CompanyPersistence companyPersistence
           
protected  com.liferay.portal.service.persistence.ContactPersistence contactPersistence
           
protected  UserGroupPersistenceImpl.ContainsGroup containsGroup
           
protected  UserGroupPersistenceImpl.ContainsTeam containsTeam
           
protected  UserGroupPersistenceImpl.ContainsUser containsUser
           
protected  com.liferay.portal.service.persistence.CountryPersistence countryPersistence
           
protected  com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence
           
static java.lang.String FINDER_CLASS_NAME_ENTITY
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_GROUP
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_TEAM
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_USER
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_N
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_P
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_N
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_GROUPS
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_GROUPS_SIZE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_TEAMS
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_TEAMS_SIZE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_USERS
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_USERS_SIZE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
protected  com.liferay.portal.service.persistence.GroupPersistence groupPersistence
           
protected  com.liferay.portal.service.persistence.ImagePersistence imagePersistence
           
protected  com.liferay.portal.service.persistence.LayoutBranchPersistence layoutBranchPersistence
           
protected  com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence
           
protected  com.liferay.portal.service.persistence.LayoutPrototypePersistence layoutPrototypePersistence
           
protected  com.liferay.portal.service.persistence.LayoutRevisionPersistence layoutRevisionPersistence
           
protected  com.liferay.portal.service.persistence.LayoutSetBranchPersistence layoutSetBranchPersistence
           
protected  com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence
           
protected  com.liferay.portal.service.persistence.LayoutSetPrototypePersistence layoutSetPrototypePersistence
           
protected  com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence
           
protected  com.liferay.portal.service.persistence.LockPersistence lockPersistence
           
protected  com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence
           
protected  com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence
           
protected  com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence
           
protected  com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence
           
protected  com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence
           
protected  com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence
           
protected  com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence
           
protected  com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence
           
protected  com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence
           
protected  com.liferay.portal.service.persistence.PhonePersistence phonePersistence
           
protected  com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence
           
protected  com.liferay.portal.service.persistence.PortalPreferencesPersistence portalPreferencesPersistence
           
protected  com.liferay.portal.service.persistence.PortletItemPersistence portletItemPersistence
           
protected  com.liferay.portal.service.persistence.PortletPersistence portletPersistence
           
protected  com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence
           
protected  com.liferay.portal.service.persistence.RegionPersistence regionPersistence
           
protected  com.liferay.portal.service.persistence.ReleasePersistence releasePersistence
           
protected  UserGroupPersistenceImpl.RemoveGroup removeGroup
           
protected  UserGroupPersistenceImpl.RemoveTeam removeTeam
           
protected  UserGroupPersistenceImpl.RemoveUser removeUser
           
protected  com.liferay.portal.service.persistence.RepositoryEntryPersistence repositoryEntryPersistence
           
protected  com.liferay.portal.service.persistence.RepositoryPersistence repositoryPersistence
           
protected  com.liferay.portal.service.persistence.ResourceActionPersistence resourceActionPersistence
           
protected  com.liferay.portal.service.persistence.ResourceBlockPermissionPersistence resourceBlockPermissionPersistence
           
protected  com.liferay.portal.service.persistence.ResourceBlockPersistence resourceBlockPersistence
           
protected  com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence
           
protected  com.liferay.portal.service.persistence.ResourcePermissionPersistence resourcePermissionPersistence
           
protected  com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence
           
protected  com.liferay.portal.service.persistence.ResourceTypePermissionPersistence resourceTypePermissionPersistence
           
protected  com.liferay.portal.service.persistence.RolePersistence rolePersistence
           
protected  com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence
           
protected  com.liferay.portal.service.persistence.ShardPersistence shardPersistence
           
protected  com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence
           
protected  com.liferay.portal.service.persistence.TeamPersistence teamPersistence
           
protected  com.liferay.portal.service.persistence.TicketPersistence ticketPersistence
           
protected  com.liferay.portal.service.persistence.UserGroupGroupRolePersistence userGroupGroupRolePersistence
           
protected  com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence
           
protected  com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence
           
protected  com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence
           
protected  com.liferay.portal.service.persistence.UserNotificationEventPersistence userNotificationEventPersistence
           
protected  com.liferay.portal.service.persistence.UserPersistence userPersistence
           
protected  com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence
           
protected  com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence
           
protected  com.liferay.portal.service.persistence.VirtualHostPersistence virtualHostPersistence
           
protected  com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence
           
protected  com.liferay.portal.service.persistence.WebsitePersistence websitePersistence
           
protected  com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence
           
protected  com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
UserGroupPersistenceImpl()
           
 
Method Summary
 void addGroup(long pk, com.liferay.portal.model.Group group)
          Adds an association between the user group and the group.
 void addGroup(long pk, long groupPK)
          Adds an association between the user group and the group.
 void addGroups(long pk, java.util.List<com.liferay.portal.model.Group> groups)
          Adds an association between the user group and the groups.
 void addGroups(long pk, long[] groupPKs)
          Adds an association between the user group and the groups.
 void addTeam(long pk, long teamPK)
          Adds an association between the user group and the team.
 void addTeam(long pk, com.liferay.portal.model.Team team)
          Adds an association between the user group and the team.
 void addTeams(long pk, java.util.List<com.liferay.portal.model.Team> teams)
          Adds an association between the user group and the teams.
 void addTeams(long pk, long[] teamPKs)
          Adds an association between the user group and the teams.
 void addUser(long pk, long userPK)
          Adds an association between the user group and the user.
 void addUser(long pk, com.liferay.portal.model.User user)
          Adds an association between the user group and the user.
 void addUsers(long pk, java.util.List<com.liferay.portal.model.User> users)
          Adds an association between the user group and the users.
 void addUsers(long pk, long[] userPKs)
          Adds an association between the user group and the users.
 void afterPropertiesSet()
          Initializes the user group persistence.
 void cacheResult(java.util.List<com.liferay.portal.model.UserGroup> userGroups)
          Caches the user groups in the entity cache if it is enabled.
 void cacheResult(com.liferay.portal.model.UserGroup userGroup)
          Caches the user group in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all user groups.
 void clearCache(java.util.List<com.liferay.portal.model.UserGroup> userGroups)
           
 void clearCache(com.liferay.portal.model.UserGroup userGroup)
          Clears the cache for the user group.
 void clearGroups(long pk)
          Clears all associations between the user group and its groups.
 void clearTeams(long pk)
          Clears all associations between the user group and its teams.
protected  void clearUniqueFindersCache(com.liferay.portal.model.UserGroup userGroup)
           
 void clearUsers(long pk)
          Clears all associations between the user group and its users.
 boolean containsGroup(long pk, long groupPK)
          Returns true if the group is associated with the user group.
 boolean containsGroups(long pk)
          Returns true if the user group has any groups associated with it.
 boolean containsTeam(long pk, long teamPK)
          Returns true if the team is associated with the user group.
 boolean containsTeams(long pk)
          Returns true if the user group has any teams associated with it.
 boolean containsUser(long pk, long userPK)
          Returns true if the user is associated with the user group.
 boolean containsUsers(long pk)
          Returns true if the user group has any users associated with it.
 int countAll()
          Returns the number of user groups.
 int countByC_N(long companyId, java.lang.String name)
          Returns the number of user groups where companyId = ? and name = ?.
 int countByC_P(long companyId, long parentUserGroupId)
          Returns the number of user groups where companyId = ? and parentUserGroupId = ?.
 int countByCompanyId(long companyId)
          Returns the number of user groups where companyId = ?.
 com.liferay.portal.model.UserGroup create(long userGroupId)
          Creates a new user group with the primary key.
 void destroy()
           
 com.liferay.portal.model.UserGroup fetchByC_N(long companyId, java.lang.String name)
          Returns the user group where companyId = ? and name = ? or returns null if it could not be found.
 com.liferay.portal.model.UserGroup fetchByC_N(long companyId, java.lang.String name, boolean retrieveFromCache)
          Returns the user group where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portal.model.UserGroup fetchByPrimaryKey(long userGroupId)
          Returns the user group with the primary key or returns null if it could not be found.
 com.liferay.portal.model.UserGroup fetchByPrimaryKey(java.io.Serializable primaryKey)
          Returns the user group with the primary key or returns null if it could not be found.
 int filterCountByC_P(long companyId, long parentUserGroupId)
          Returns the number of user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?.
 int filterCountByCompanyId(long companyId)
          Returns the number of user groups that the user has permission to view where companyId = ?.
 com.liferay.portal.model.UserGroup[] filterFindByC_P_PrevAndNext(long userGroupId, long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?.
 java.util.List<com.liferay.portal.model.UserGroup> filterFindByC_P(long companyId, long parentUserGroupId)
          Returns all the user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?.
 java.util.List<com.liferay.portal.model.UserGroup> filterFindByC_P(long companyId, long parentUserGroupId, int start, int end)
          Returns a range of all the user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?.
 java.util.List<com.liferay.portal.model.UserGroup> filterFindByC_P(long companyId, long parentUserGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the user groups that the user has permissions to view where companyId = ? and parentUserGroupId = ?.
 com.liferay.portal.model.UserGroup[] filterFindByCompanyId_PrevAndNext(long userGroupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where companyId = ?.
 java.util.List<com.liferay.portal.model.UserGroup> filterFindByCompanyId(long companyId)
          Returns all the user groups that the user has permission to view where companyId = ?.
 java.util.List<com.liferay.portal.model.UserGroup> filterFindByCompanyId(long companyId, int start, int end)
          Returns a range of all the user groups that the user has permission to view where companyId = ?.
 java.util.List<com.liferay.portal.model.UserGroup> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the user groups that the user has permissions to view where companyId = ?.
protected  com.liferay.portal.model.UserGroup filterGetByC_P_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.model.UserGroup userGroup, long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portal.model.UserGroup filterGetByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.model.UserGroup userGroup, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 java.util.List<com.liferay.portal.model.UserGroup> findAll()
          Returns all the user groups.
 java.util.List<com.liferay.portal.model.UserGroup> findAll(int start, int end)
          Returns a range of all the user groups.
 java.util.List<com.liferay.portal.model.UserGroup> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the user groups.
 com.liferay.portal.model.UserGroup findByC_N(long companyId, java.lang.String name)
          Returns the user group where companyId = ? and name = ? or throws a NoSuchUserGroupException if it could not be found.
 com.liferay.portal.model.UserGroup findByC_P_First(long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first user group in the ordered set where companyId = ? and parentUserGroupId = ?.
 com.liferay.portal.model.UserGroup findByC_P_Last(long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last user group in the ordered set where companyId = ? and parentUserGroupId = ?.
 com.liferay.portal.model.UserGroup[] findByC_P_PrevAndNext(long userGroupId, long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the user groups before and after the current user group in the ordered set where companyId = ? and parentUserGroupId = ?.
 java.util.List<com.liferay.portal.model.UserGroup> findByC_P(long companyId, long parentUserGroupId)
          Returns all the user groups where companyId = ? and parentUserGroupId = ?.
 java.util.List<com.liferay.portal.model.UserGroup> findByC_P(long companyId, long parentUserGroupId, int start, int end)
          Returns a range of all the user groups where companyId = ? and parentUserGroupId = ?.
 java.util.List<com.liferay.portal.model.UserGroup> findByC_P(long companyId, long parentUserGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the user groups where companyId = ? and parentUserGroupId = ?.
 com.liferay.portal.model.UserGroup findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first user group in the ordered set where companyId = ?.
 com.liferay.portal.model.UserGroup findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last user group in the ordered set where companyId = ?.
 com.liferay.portal.model.UserGroup[] findByCompanyId_PrevAndNext(long userGroupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the user groups before and after the current user group in the ordered set where companyId = ?.
 java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(long companyId)
          Returns all the user groups where companyId = ?.
 java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the user groups where companyId = ?.
 java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the user groups where companyId = ?.
 com.liferay.portal.model.UserGroup findByPrimaryKey(long userGroupId)
          Returns the user group with the primary key or throws a NoSuchUserGroupException if it could not be found.
 com.liferay.portal.model.UserGroup findByPrimaryKey(java.io.Serializable primaryKey)
          Returns the user group with the primary key or throws a NoSuchModelException if it could not be found.
protected  com.liferay.portal.model.UserGroup getByC_P_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.model.UserGroup userGroup, long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portal.model.UserGroup getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.model.UserGroup userGroup, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
          Returns all the groups associated with the user group.
 java.util.List<com.liferay.portal.model.Group> getGroups(long pk, int start, int end)
          Returns a range of all the groups associated with the user group.
 java.util.List<com.liferay.portal.model.Group> getGroups(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the groups associated with the user group.
 int getGroupsSize(long pk)
          Returns the number of groups associated with the user group.
 java.util.List<com.liferay.portal.model.Team> getTeams(long pk)
          Returns all the teams associated with the user group.
 java.util.List<com.liferay.portal.model.Team> getTeams(long pk, int start, int end)
          Returns a range of all the teams associated with the user group.
 java.util.List<com.liferay.portal.model.Team> getTeams(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the teams associated with the user group.
 int getTeamsSize(long pk)
          Returns the number of teams associated with the user group.
 java.util.List<com.liferay.portal.model.User> getUsers(long pk)
          Returns all the users associated with the user group.
 java.util.List<com.liferay.portal.model.User> getUsers(long pk, int start, int end)
          Returns a range of all the users associated with the user group.
 java.util.List<com.liferay.portal.model.User> getUsers(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the users associated with the user group.
 int getUsersSize(long pk)
          Returns the number of users associated with the user group.
 com.liferay.portal.model.UserGroup remove(long userGroupId)
          Removes the user group with the primary key from the database.
 com.liferay.portal.model.UserGroup remove(java.io.Serializable primaryKey)
          Removes the user group with the primary key from the database.
 void removeAll()
          Removes all the user groups from the database.
 void removeByC_N(long companyId, java.lang.String name)
          Removes the user group where companyId = ? and name = ? from the database.
 void removeByC_P(long companyId, long parentUserGroupId)
          Removes all the user groups where companyId = ? and parentUserGroupId = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the user groups where companyId = ? from the database.
 void removeGroup(long pk, com.liferay.portal.model.Group group)
          Removes the association between the user group and the group.
 void removeGroup(long pk, long groupPK)
          Removes the association between the user group and the group.
 void removeGroups(long pk, java.util.List<com.liferay.portal.model.Group> groups)
          Removes the association between the user group and the groups.
 void removeGroups(long pk, long[] groupPKs)
          Removes the association between the user group and the groups.
protected  com.liferay.portal.model.UserGroup removeImpl(com.liferay.portal.model.UserGroup userGroup)
           
 void removeTeam(long pk, long teamPK)
          Removes the association between the user group and the team.
 void removeTeam(long pk, com.liferay.portal.model.Team team)
          Removes the association between the user group and the team.
 void removeTeams(long pk, java.util.List<com.liferay.portal.model.Team> teams)
          Removes the association between the user group and the teams.
 void removeTeams(long pk, long[] teamPKs)
          Removes the association between the user group and the teams.
 void removeUser(long pk, long userPK)
          Removes the association between the user group and the user.
 void removeUser(long pk, com.liferay.portal.model.User user)
          Removes the association between the user group and the user.
 void removeUsers(long pk, java.util.List<com.liferay.portal.model.User> users)
          Removes the association between the user group and the users.
 void removeUsers(long pk, long[] userPKs)
          Removes the association between the user group and the users.
 void setGroups(long pk, java.util.List<com.liferay.portal.model.Group> groups)
          Sets the groups associated with the user group, removing and adding associations as necessary.
 void setGroups(long pk, long[] groupPKs)
          Sets the groups associated with the user group, removing and adding associations as necessary.
 void setTeams(long pk, java.util.List<com.liferay.portal.model.Team> teams)
          Sets the teams associated with the user group, removing and adding associations as necessary.
 void setTeams(long pk, long[] teamPKs)
          Sets the teams associated with the user group, removing and adding associations as necessary.
 void setUsers(long pk, java.util.List<com.liferay.portal.model.User> users)
          Sets the users associated with the user group, removing and adding associations as necessary.
 void setUsers(long pk, long[] userPKs)
          Sets the users associated with the user group, removing and adding associations as necessary.
protected  com.liferay.portal.model.UserGroup toUnwrappedModel(com.liferay.portal.model.UserGroup userGroup)
           
 com.liferay.portal.model.UserGroup updateImpl(com.liferay.portal.model.UserGroup userGroup, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final java.lang.String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P

FINDER_PATH_COUNT_BY_C_P

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_P

FINDER_PATH_FETCH_BY_C_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_N

FINDER_PATH_COUNT_BY_C_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_N

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_GET_GROUPS

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_GROUPS

FINDER_PATH_GET_GROUPS_SIZE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_GROUPS_SIZE

FINDER_PATH_CONTAINS_GROUP

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_GROUP

FINDER_PATH_GET_TEAMS

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_TEAMS

FINDER_PATH_GET_TEAMS_SIZE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_TEAMS_SIZE

FINDER_PATH_CONTAINS_TEAM

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_TEAM

FINDER_PATH_GET_USERS

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_USERS

FINDER_PATH_GET_USERS_SIZE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_USERS_SIZE

FINDER_PATH_CONTAINS_USER

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_USER

accountPersistence

@BeanReference(type=com.liferay.portal.service.persistence.AccountPersistence.class)
protected com.liferay.portal.service.persistence.AccountPersistence accountPersistence

addressPersistence

@BeanReference(type=com.liferay.portal.service.persistence.AddressPersistence.class)
protected com.liferay.portal.service.persistence.AddressPersistence addressPersistence

browserTrackerPersistence

@BeanReference(type=com.liferay.portal.service.persistence.BrowserTrackerPersistence.class)
protected com.liferay.portal.service.persistence.BrowserTrackerPersistence browserTrackerPersistence

classNamePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ClassNamePersistence.class)
protected com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence

clusterGroupPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ClusterGroupPersistence.class)
protected com.liferay.portal.service.persistence.ClusterGroupPersistence clusterGroupPersistence

companyPersistence

@BeanReference(type=com.liferay.portal.service.persistence.CompanyPersistence.class)
protected com.liferay.portal.service.persistence.CompanyPersistence companyPersistence

contactPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ContactPersistence.class)
protected com.liferay.portal.service.persistence.ContactPersistence contactPersistence

countryPersistence

@BeanReference(type=com.liferay.portal.service.persistence.CountryPersistence.class)
protected com.liferay.portal.service.persistence.CountryPersistence countryPersistence

emailAddressPersistence

@BeanReference(type=com.liferay.portal.service.persistence.EmailAddressPersistence.class)
protected com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence

groupPersistence

@BeanReference(type=com.liferay.portal.service.persistence.GroupPersistence.class)
protected com.liferay.portal.service.persistence.GroupPersistence groupPersistence

imagePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ImagePersistence.class)
protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence

layoutPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutPersistence.class)
protected com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence

layoutBranchPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutBranchPersistence.class)
protected com.liferay.portal.service.persistence.LayoutBranchPersistence layoutBranchPersistence

layoutPrototypePersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutPrototypePersistence.class)
protected com.liferay.portal.service.persistence.LayoutPrototypePersistence layoutPrototypePersistence

layoutRevisionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutRevisionPersistence.class)
protected com.liferay.portal.service.persistence.LayoutRevisionPersistence layoutRevisionPersistence

layoutSetPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutSetPersistence.class)
protected com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence

layoutSetBranchPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutSetBranchPersistence.class)
protected com.liferay.portal.service.persistence.LayoutSetBranchPersistence layoutSetBranchPersistence

layoutSetPrototypePersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutSetPrototypePersistence.class)
protected com.liferay.portal.service.persistence.LayoutSetPrototypePersistence layoutSetPrototypePersistence

listTypePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ListTypePersistence.class)
protected com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence

lockPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LockPersistence.class)
protected com.liferay.portal.service.persistence.LockPersistence lockPersistence

membershipRequestPersistence

@BeanReference(type=com.liferay.portal.service.persistence.MembershipRequestPersistence.class)
protected com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence

organizationPersistence

@BeanReference(type=com.liferay.portal.service.persistence.OrganizationPersistence.class)
protected com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence

orgGroupPermissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.OrgGroupPermissionPersistence.class)
protected com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence

orgGroupRolePersistence

@BeanReference(type=com.liferay.portal.service.persistence.OrgGroupRolePersistence.class)
protected com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence

orgLaborPersistence

@BeanReference(type=com.liferay.portal.service.persistence.OrgLaborPersistence.class)
protected com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence

passwordPolicyPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PasswordPolicyPersistence.class)
protected com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence

passwordPolicyRelPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PasswordPolicyRelPersistence.class)
protected com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence

passwordTrackerPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PasswordTrackerPersistence.class)
protected com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence

permissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PermissionPersistence.class)
protected com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence

phonePersistence

@BeanReference(type=com.liferay.portal.service.persistence.PhonePersistence.class)
protected com.liferay.portal.service.persistence.PhonePersistence phonePersistence

pluginSettingPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PluginSettingPersistence.class)
protected com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence

portalPreferencesPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PortalPreferencesPersistence.class)
protected com.liferay.portal.service.persistence.PortalPreferencesPersistence portalPreferencesPersistence

portletPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PortletPersistence.class)
protected com.liferay.portal.service.persistence.PortletPersistence portletPersistence

portletItemPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PortletItemPersistence.class)
protected com.liferay.portal.service.persistence.PortletItemPersistence portletItemPersistence

portletPreferencesPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PortletPreferencesPersistence.class)
protected com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence

regionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.RegionPersistence.class)
protected com.liferay.portal.service.persistence.RegionPersistence regionPersistence

releasePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ReleasePersistence.class)
protected com.liferay.portal.service.persistence.ReleasePersistence releasePersistence

repositoryPersistence

@BeanReference(type=com.liferay.portal.service.persistence.RepositoryPersistence.class)
protected com.liferay.portal.service.persistence.RepositoryPersistence repositoryPersistence

repositoryEntryPersistence

@BeanReference(type=com.liferay.portal.service.persistence.RepositoryEntryPersistence.class)
protected com.liferay.portal.service.persistence.RepositoryEntryPersistence repositoryEntryPersistence

resourcePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class)
protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence

resourceActionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceActionPersistence.class)
protected com.liferay.portal.service.persistence.ResourceActionPersistence resourceActionPersistence

resourceBlockPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceBlockPersistence.class)
protected com.liferay.portal.service.persistence.ResourceBlockPersistence resourceBlockPersistence

resourceBlockPermissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceBlockPermissionPersistence.class)
protected com.liferay.portal.service.persistence.ResourceBlockPermissionPersistence resourceBlockPermissionPersistence

resourceCodePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceCodePersistence.class)
protected com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence

resourcePermissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePermissionPersistence.class)
protected com.liferay.portal.service.persistence.ResourcePermissionPersistence resourcePermissionPersistence

resourceTypePermissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceTypePermissionPersistence.class)
protected com.liferay.portal.service.persistence.ResourceTypePermissionPersistence resourceTypePermissionPersistence

rolePersistence

@BeanReference(type=com.liferay.portal.service.persistence.RolePersistence.class)
protected com.liferay.portal.service.persistence.RolePersistence rolePersistence

serviceComponentPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ServiceComponentPersistence.class)
protected com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence

shardPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ShardPersistence.class)
protected com.liferay.portal.service.persistence.ShardPersistence shardPersistence

subscriptionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.SubscriptionPersistence.class)
protected com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence

teamPersistence

@BeanReference(type=com.liferay.portal.service.persistence.TeamPersistence.class)
protected com.liferay.portal.service.persistence.TeamPersistence teamPersistence

ticketPersistence

@BeanReference(type=com.liferay.portal.service.persistence.TicketPersistence.class)
protected com.liferay.portal.service.persistence.TicketPersistence ticketPersistence

userPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class)
protected com.liferay.portal.service.persistence.UserPersistence userPersistence

userGroupPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserGroupPersistence.class)
protected com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence

userGroupGroupRolePersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserGroupGroupRolePersistence.class)
protected com.liferay.portal.service.persistence.UserGroupGroupRolePersistence userGroupGroupRolePersistence

userGroupRolePersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserGroupRolePersistence.class)
protected com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence

userIdMapperPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserIdMapperPersistence.class)
protected com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence

userNotificationEventPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserNotificationEventPersistence.class)
protected com.liferay.portal.service.persistence.UserNotificationEventPersistence userNotificationEventPersistence

userTrackerPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserTrackerPersistence.class)
protected com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence

userTrackerPathPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserTrackerPathPersistence.class)
protected com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence

virtualHostPersistence

@BeanReference(type=com.liferay.portal.service.persistence.VirtualHostPersistence.class)
protected com.liferay.portal.service.persistence.VirtualHostPersistence virtualHostPersistence

webDAVPropsPersistence

@BeanReference(type=com.liferay.portal.service.persistence.WebDAVPropsPersistence.class)
protected com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence

websitePersistence

@BeanReference(type=com.liferay.portal.service.persistence.WebsitePersistence.class)
protected com.liferay.portal.service.persistence.WebsitePersistence websitePersistence

workflowDefinitionLinkPersistence

@BeanReference(type=com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence.class)
protected com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence

workflowInstanceLinkPersistence

@BeanReference(type=com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence.class)
protected com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence

containsGroup

protected UserGroupPersistenceImpl.ContainsGroup containsGroup

addGroup

protected UserGroupPersistenceImpl.AddGroup addGroup

clearGroups

protected UserGroupPersistenceImpl.ClearGroups clearGroups

removeGroup

protected UserGroupPersistenceImpl.RemoveGroup removeGroup

containsTeam

protected UserGroupPersistenceImpl.ContainsTeam containsTeam

addTeam

protected UserGroupPersistenceImpl.AddTeam addTeam

clearTeams

protected UserGroupPersistenceImpl.ClearTeams clearTeams

removeTeam

protected UserGroupPersistenceImpl.RemoveTeam removeTeam

containsUser

protected UserGroupPersistenceImpl.ContainsUser containsUser

addUser

protected UserGroupPersistenceImpl.AddUser addUser

clearUsers

protected UserGroupPersistenceImpl.ClearUsers clearUsers

removeUser

protected UserGroupPersistenceImpl.RemoveUser removeUser
Constructor Detail

UserGroupPersistenceImpl

public UserGroupPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(com.liferay.portal.model.UserGroup userGroup)
Caches the user group in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
userGroup - the user group

cacheResult

public void cacheResult(java.util.List<com.liferay.portal.model.UserGroup> userGroups)
Caches the user groups in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
userGroups - the user groups

clearCache

public void clearCache()
Clears the cache for all user groups.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.UserGroup>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.UserGroup>

clearCache

public void clearCache(com.liferay.portal.model.UserGroup userGroup)
Clears the cache for the user group.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.UserGroup>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.UserGroup>

clearCache

public void clearCache(java.util.List<com.liferay.portal.model.UserGroup> userGroups)
Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.UserGroup>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.UserGroup>

clearUniqueFindersCache

protected void clearUniqueFindersCache(com.liferay.portal.model.UserGroup userGroup)

create

public com.liferay.portal.model.UserGroup create(long userGroupId)
Creates a new user group with the primary key. Does not add the user group to the database.

Specified by:
create in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
userGroupId - the primary key for the new user group
Returns:
the new user group

remove

public com.liferay.portal.model.UserGroup remove(long userGroupId)
                                          throws com.liferay.portal.NoSuchUserGroupException,
                                                 com.liferay.portal.kernel.exception.SystemException
Removes the user group with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
userGroupId - the primary key of the user group
Returns:
the user group that was removed
Throws:
com.liferay.portal.NoSuchUserGroupException - if a user group with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

remove

public com.liferay.portal.model.UserGroup remove(java.io.Serializable primaryKey)
                                          throws com.liferay.portal.NoSuchUserGroupException,
                                                 com.liferay.portal.kernel.exception.SystemException
Removes the user group with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.UserGroup>
Overrides:
remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.UserGroup>
Parameters:
primaryKey - the primary key of the user group
Returns:
the user group that was removed
Throws:
com.liferay.portal.NoSuchUserGroupException - if a user group with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeImpl

protected com.liferay.portal.model.UserGroup removeImpl(com.liferay.portal.model.UserGroup userGroup)
                                                 throws com.liferay.portal.kernel.exception.SystemException
Overrides:
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.UserGroup>
Throws:
com.liferay.portal.kernel.exception.SystemException

updateImpl

public com.liferay.portal.model.UserGroup updateImpl(com.liferay.portal.model.UserGroup userGroup,
                                                     boolean merge)
                                              throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateImpl in interface com.liferay.portal.service.persistence.UserGroupPersistence
Overrides:
updateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.UserGroup>
Throws:
com.liferay.portal.kernel.exception.SystemException

toUnwrappedModel

protected com.liferay.portal.model.UserGroup toUnwrappedModel(com.liferay.portal.model.UserGroup userGroup)

findByPrimaryKey

public com.liferay.portal.model.UserGroup findByPrimaryKey(java.io.Serializable primaryKey)
                                                    throws com.liferay.portal.NoSuchModelException,
                                                           com.liferay.portal.kernel.exception.SystemException
Returns the user group with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.UserGroup>
Overrides:
findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.UserGroup>
Parameters:
primaryKey - the primary key of the user group
Returns:
the user group
Throws:
com.liferay.portal.NoSuchModelException - if a user group with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByPrimaryKey

public com.liferay.portal.model.UserGroup findByPrimaryKey(long userGroupId)
                                                    throws com.liferay.portal.NoSuchUserGroupException,
                                                           com.liferay.portal.kernel.exception.SystemException
Returns the user group with the primary key or throws a NoSuchUserGroupException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
userGroupId - the primary key of the user group
Returns:
the user group
Throws:
com.liferay.portal.NoSuchUserGroupException - if a user group with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portal.model.UserGroup fetchByPrimaryKey(java.io.Serializable primaryKey)
                                                     throws com.liferay.portal.kernel.exception.SystemException
Returns the user group with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.UserGroup>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.UserGroup>
Parameters:
primaryKey - the primary key of the user group
Returns:
the user group, or null if a user group with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portal.model.UserGroup fetchByPrimaryKey(long userGroupId)
                                                     throws com.liferay.portal.kernel.exception.SystemException
Returns the user group with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
userGroupId - the primary key of the user group
Returns:
the user group, or null if a user group with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId

public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(long companyId)
                                                                   throws com.liferay.portal.kernel.exception.SystemException
Returns all the user groups where companyId = ?.

Specified by:
findByCompanyId in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
Returns:
the matching user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId

public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(long companyId,
                                                                          int start,
                                                                          int end)
                                                                   throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the user groups where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
Returns:
the range of matching user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId

public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(long companyId,
                                                                          int start,
                                                                          int end,
                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                   throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the user groups where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_First

public com.liferay.portal.model.UserGroup findByCompanyId_First(long companyId,
                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                         throws com.liferay.portal.NoSuchUserGroupException,
                                                                com.liferay.portal.kernel.exception.SystemException
Returns the first user group in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId_First in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user group
Throws:
com.liferay.portal.NoSuchUserGroupException - if a matching user group could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_Last

public com.liferay.portal.model.UserGroup findByCompanyId_Last(long companyId,
                                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                        throws com.liferay.portal.NoSuchUserGroupException,
                                                               com.liferay.portal.kernel.exception.SystemException
Returns the last user group in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId_Last in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user group
Throws:
com.liferay.portal.NoSuchUserGroupException - if a matching user group could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public com.liferay.portal.model.UserGroup[] findByCompanyId_PrevAndNext(long userGroupId,
                                                                        long companyId,
                                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                 throws com.liferay.portal.NoSuchUserGroupException,
                                                                        com.liferay.portal.kernel.exception.SystemException
Returns the user groups before and after the current user group in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId_PrevAndNext in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
userGroupId - the primary key of the current user group
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user group
Throws:
com.liferay.portal.NoSuchUserGroupException - if a user group with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByCompanyId_PrevAndNext

protected com.liferay.portal.model.UserGroup getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                        com.liferay.portal.model.UserGroup userGroup,
                                                                        long companyId,
                                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                        boolean previous)

filterFindByCompanyId

public java.util.List<com.liferay.portal.model.UserGroup> filterFindByCompanyId(long companyId)
                                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns all the user groups that the user has permission to view where companyId = ?.

Specified by:
filterFindByCompanyId in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
Returns:
the matching user groups that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByCompanyId

public java.util.List<com.liferay.portal.model.UserGroup> filterFindByCompanyId(long companyId,
                                                                                int start,
                                                                                int end)
                                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the user groups that the user has permission to view where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
filterFindByCompanyId in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
Returns:
the range of matching user groups that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByCompanyId

public java.util.List<com.liferay.portal.model.UserGroup> filterFindByCompanyId(long companyId,
                                                                                int start,
                                                                                int end,
                                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the user groups that the user has permissions to view where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
filterFindByCompanyId in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching user groups that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByCompanyId_PrevAndNext

public com.liferay.portal.model.UserGroup[] filterFindByCompanyId_PrevAndNext(long userGroupId,
                                                                              long companyId,
                                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                       throws com.liferay.portal.NoSuchUserGroupException,
                                                                              com.liferay.portal.kernel.exception.SystemException
Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where companyId = ?.

Specified by:
filterFindByCompanyId_PrevAndNext in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
userGroupId - the primary key of the current user group
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user group
Throws:
com.liferay.portal.NoSuchUserGroupException - if a user group with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterGetByCompanyId_PrevAndNext

protected com.liferay.portal.model.UserGroup filterGetByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                              com.liferay.portal.model.UserGroup userGroup,
                                                                              long companyId,
                                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                              boolean previous)

findByC_P

public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(long companyId,
                                                                    long parentUserGroupId)
                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns all the user groups where companyId = ? and parentUserGroupId = ?.

Specified by:
findByC_P in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
parentUserGroupId - the parent user group ID
Returns:
the matching user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_P

public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(long companyId,
                                                                    long parentUserGroupId,
                                                                    int start,
                                                                    int end)
                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the user groups where companyId = ? and parentUserGroupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_P in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
parentUserGroupId - the parent user group ID
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
Returns:
the range of matching user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_P

public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(long companyId,
                                                                    long parentUserGroupId,
                                                                    int start,
                                                                    int end,
                                                                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the user groups where companyId = ? and parentUserGroupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_P in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
parentUserGroupId - the parent user group ID
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_P_First

public com.liferay.portal.model.UserGroup findByC_P_First(long companyId,
                                                          long parentUserGroupId,
                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                   throws com.liferay.portal.NoSuchUserGroupException,
                                                          com.liferay.portal.kernel.exception.SystemException
Returns the first user group in the ordered set where companyId = ? and parentUserGroupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_P_First in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
parentUserGroupId - the parent user group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user group
Throws:
com.liferay.portal.NoSuchUserGroupException - if a matching user group could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_P_Last

public com.liferay.portal.model.UserGroup findByC_P_Last(long companyId,
                                                         long parentUserGroupId,
                                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                  throws com.liferay.portal.NoSuchUserGroupException,
                                                         com.liferay.portal.kernel.exception.SystemException
Returns the last user group in the ordered set where companyId = ? and parentUserGroupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_P_Last in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
parentUserGroupId - the parent user group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user group
Throws:
com.liferay.portal.NoSuchUserGroupException - if a matching user group could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_P_PrevAndNext

public com.liferay.portal.model.UserGroup[] findByC_P_PrevAndNext(long userGroupId,
                                                                  long companyId,
                                                                  long parentUserGroupId,
                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                           throws com.liferay.portal.NoSuchUserGroupException,
                                                                  com.liferay.portal.kernel.exception.SystemException
Returns the user groups before and after the current user group in the ordered set where companyId = ? and parentUserGroupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_P_PrevAndNext in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
userGroupId - the primary key of the current user group
companyId - the company ID
parentUserGroupId - the parent user group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user group
Throws:
com.liferay.portal.NoSuchUserGroupException - if a user group with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByC_P_PrevAndNext

protected com.liferay.portal.model.UserGroup getByC_P_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                  com.liferay.portal.model.UserGroup userGroup,
                                                                  long companyId,
                                                                  long parentUserGroupId,
                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                  boolean previous)

filterFindByC_P

public java.util.List<com.liferay.portal.model.UserGroup> filterFindByC_P(long companyId,
                                                                          long parentUserGroupId)
                                                                   throws com.liferay.portal.kernel.exception.SystemException
Returns all the user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?.

Specified by:
filterFindByC_P in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
parentUserGroupId - the parent user group ID
Returns:
the matching user groups that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByC_P

public java.util.List<com.liferay.portal.model.UserGroup> filterFindByC_P(long companyId,
                                                                          long parentUserGroupId,
                                                                          int start,
                                                                          int end)
                                                                   throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
filterFindByC_P in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
parentUserGroupId - the parent user group ID
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
Returns:
the range of matching user groups that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByC_P

public java.util.List<com.liferay.portal.model.UserGroup> filterFindByC_P(long companyId,
                                                                          long parentUserGroupId,
                                                                          int start,
                                                                          int end,
                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                   throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the user groups that the user has permissions to view where companyId = ? and parentUserGroupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
filterFindByC_P in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
parentUserGroupId - the parent user group ID
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching user groups that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByC_P_PrevAndNext

public com.liferay.portal.model.UserGroup[] filterFindByC_P_PrevAndNext(long userGroupId,
                                                                        long companyId,
                                                                        long parentUserGroupId,
                                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                 throws com.liferay.portal.NoSuchUserGroupException,
                                                                        com.liferay.portal.kernel.exception.SystemException
Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?.

Specified by:
filterFindByC_P_PrevAndNext in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
userGroupId - the primary key of the current user group
companyId - the company ID
parentUserGroupId - the parent user group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user group
Throws:
com.liferay.portal.NoSuchUserGroupException - if a user group with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterGetByC_P_PrevAndNext

protected com.liferay.portal.model.UserGroup filterGetByC_P_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                        com.liferay.portal.model.UserGroup userGroup,
                                                                        long companyId,
                                                                        long parentUserGroupId,
                                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                        boolean previous)

findByC_N

public com.liferay.portal.model.UserGroup findByC_N(long companyId,
                                                    java.lang.String name)
                                             throws com.liferay.portal.NoSuchUserGroupException,
                                                    com.liferay.portal.kernel.exception.SystemException
Returns the user group where companyId = ? and name = ? or throws a NoSuchUserGroupException if it could not be found.

Specified by:
findByC_N in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
name - the name
Returns:
the matching user group
Throws:
com.liferay.portal.NoSuchUserGroupException - if a matching user group could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_N

public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
                                                     java.lang.String name)
                                              throws com.liferay.portal.kernel.exception.SystemException
Returns the user group where companyId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_N in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
name - the name
Returns:
the matching user group, or null if a matching user group could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_N

public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
                                                     java.lang.String name,
                                                     boolean retrieveFromCache)
                                              throws com.liferay.portal.kernel.exception.SystemException
Returns the user group where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByC_N in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
name - the name
retrieveFromCache - whether to use the finder cache
Returns:
the matching user group, or null if a matching user group could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portal.model.UserGroup> findAll()
                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns all the user groups.

Specified by:
findAll in interface com.liferay.portal.service.persistence.UserGroupPersistence
Returns:
the user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portal.model.UserGroup> findAll(int start,
                                                                  int end)
                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the user groups.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findAll in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
Returns:
the range of user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portal.model.UserGroup> findAll(int start,
                                                                  int end,
                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the user groups.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findAll in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws com.liferay.portal.kernel.exception.SystemException
Removes all the user groups where companyId = ? from the database.

Specified by:
removeByCompanyId in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByC_P

public void removeByC_P(long companyId,
                        long parentUserGroupId)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes all the user groups where companyId = ? and parentUserGroupId = ? from the database.

Specified by:
removeByC_P in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
parentUserGroupId - the parent user group ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByC_N

public void removeByC_N(long companyId,
                        java.lang.String name)
                 throws com.liferay.portal.NoSuchUserGroupException,
                        com.liferay.portal.kernel.exception.SystemException
Removes the user group where companyId = ? and name = ? from the database.

Specified by:
removeByC_N in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
name - the name
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portal.NoSuchUserGroupException

removeAll

public void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Removes all the user groups from the database.

Specified by:
removeAll in interface com.liferay.portal.service.persistence.UserGroupPersistence
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByCompanyId

public int countByCompanyId(long companyId)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns the number of user groups where companyId = ?.

Specified by:
countByCompanyId in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterCountByCompanyId

public int filterCountByCompanyId(long companyId)
                           throws com.liferay.portal.kernel.exception.SystemException
Returns the number of user groups that the user has permission to view where companyId = ?.

Specified by:
filterCountByCompanyId in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching user groups that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_P

public int countByC_P(long companyId,
                      long parentUserGroupId)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of user groups where companyId = ? and parentUserGroupId = ?.

Specified by:
countByC_P in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
parentUserGroupId - the parent user group ID
Returns:
the number of matching user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterCountByC_P

public int filterCountByC_P(long companyId,
                            long parentUserGroupId)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns the number of user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?.

Specified by:
filterCountByC_P in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
parentUserGroupId - the parent user group ID
Returns:
the number of matching user groups that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_N

public int countByC_N(long companyId,
                      java.lang.String name)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of user groups where companyId = ? and name = ?.

Specified by:
countByC_N in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
companyId - the company ID
name - the name
Returns:
the number of matching user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countAll

public int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Returns the number of user groups.

Specified by:
countAll in interface com.liferay.portal.service.persistence.UserGroupPersistence
Returns:
the number of user groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getGroups

public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns all the groups associated with the user group.

Specified by:
getGroups in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
Returns:
the groups associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getGroups

public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
                                                                int start,
                                                                int end)
                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the groups associated with the user group.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getGroups in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
Returns:
the range of groups associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getGroups

public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
                                                                int start,
                                                                int end,
                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the groups associated with the user group.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getGroups in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of groups associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getGroupsSize

public int getGroupsSize(long pk)
                  throws com.liferay.portal.kernel.exception.SystemException
Returns the number of groups associated with the user group.

Specified by:
getGroupsSize in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
Returns:
the number of groups associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsGroup

public boolean containsGroup(long pk,
                             long groupPK)
                      throws com.liferay.portal.kernel.exception.SystemException
Returns true if the group is associated with the user group.

Specified by:
containsGroup in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
groupPK - the primary key of the group
Returns:
true if the group is associated with the user group; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsGroups

public boolean containsGroups(long pk)
                       throws com.liferay.portal.kernel.exception.SystemException
Returns true if the user group has any groups associated with it.

Specified by:
containsGroups in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group to check for associations with groups
Returns:
true if the user group has any groups associated with it; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addGroup

public void addGroup(long pk,
                     long groupPK)
              throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroup in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
groupPK - the primary key of the group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addGroup

public void addGroup(long pk,
                     com.liferay.portal.model.Group group)
              throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroup in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
group - the group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addGroups

public void addGroups(long pk,
                      long[] groupPKs)
               throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroups in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
groupPKs - the primary keys of the groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addGroups

public void addGroups(long pk,
                      java.util.List<com.liferay.portal.model.Group> groups)
               throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroups in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
groups - the groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

clearGroups

public void clearGroups(long pk)
                 throws com.liferay.portal.kernel.exception.SystemException
Clears all associations between the user group and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearGroups in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group to clear the associated groups from
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeGroup

public void removeGroup(long pk,
                        long groupPK)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroup in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
groupPK - the primary key of the group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeGroup

public void removeGroup(long pk,
                        com.liferay.portal.model.Group group)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroup in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
group - the group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeGroups

public void removeGroups(long pk,
                         long[] groupPKs)
                  throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroups in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
groupPKs - the primary keys of the groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeGroups

public void removeGroups(long pk,
                         java.util.List<com.liferay.portal.model.Group> groups)
                  throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroups in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
groups - the groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setGroups

public void setGroups(long pk,
                      long[] groupPKs)
               throws com.liferay.portal.kernel.exception.SystemException
Sets the groups associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setGroups in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
groupPKs - the primary keys of the groups to be associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setGroups

public void setGroups(long pk,
                      java.util.List<com.liferay.portal.model.Group> groups)
               throws com.liferay.portal.kernel.exception.SystemException
Sets the groups associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setGroups in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
groups - the groups to be associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getTeams

public java.util.List<com.liferay.portal.model.Team> getTeams(long pk)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns all the teams associated with the user group.

Specified by:
getTeams in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
Returns:
the teams associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getTeams

public java.util.List<com.liferay.portal.model.Team> getTeams(long pk,
                                                              int start,
                                                              int end)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the teams associated with the user group.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getTeams in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
Returns:
the range of teams associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getTeams

public java.util.List<com.liferay.portal.model.Team> getTeams(long pk,
                                                              int start,
                                                              int end,
                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the teams associated with the user group.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getTeams in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of teams associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getTeamsSize

public int getTeamsSize(long pk)
                 throws com.liferay.portal.kernel.exception.SystemException
Returns the number of teams associated with the user group.

Specified by:
getTeamsSize in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
Returns:
the number of teams associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsTeam

public boolean containsTeam(long pk,
                            long teamPK)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns true if the team is associated with the user group.

Specified by:
containsTeam in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
teamPK - the primary key of the team
Returns:
true if the team is associated with the user group; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsTeams

public boolean containsTeams(long pk)
                      throws com.liferay.portal.kernel.exception.SystemException
Returns true if the user group has any teams associated with it.

Specified by:
containsTeams in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group to check for associations with teams
Returns:
true if the user group has any teams associated with it; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addTeam

public void addTeam(long pk,
                    long teamPK)
             throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addTeam in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
teamPK - the primary key of the team
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addTeam

public void addTeam(long pk,
                    com.liferay.portal.model.Team team)
             throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addTeam in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
team - the team
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addTeams

public void addTeams(long pk,
                     long[] teamPKs)
              throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addTeams in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
teamPKs - the primary keys of the teams
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addTeams

public void addTeams(long pk,
                     java.util.List<com.liferay.portal.model.Team> teams)
              throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addTeams in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
teams - the teams
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

clearTeams

public void clearTeams(long pk)
                throws com.liferay.portal.kernel.exception.SystemException
Clears all associations between the user group and its teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearTeams in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group to clear the associated teams from
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeTeam

public void removeTeam(long pk,
                       long teamPK)
                throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeTeam in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
teamPK - the primary key of the team
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeTeam

public void removeTeam(long pk,
                       com.liferay.portal.model.Team team)
                throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeTeam in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
team - the team
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeTeams

public void removeTeams(long pk,
                        long[] teamPKs)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeTeams in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
teamPKs - the primary keys of the teams
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeTeams

public void removeTeams(long pk,
                        java.util.List<com.liferay.portal.model.Team> teams)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeTeams in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
teams - the teams
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setTeams

public void setTeams(long pk,
                     long[] teamPKs)
              throws com.liferay.portal.kernel.exception.SystemException
Sets the teams associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setTeams in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
teamPKs - the primary keys of the teams to be associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setTeams

public void setTeams(long pk,
                     java.util.List<com.liferay.portal.model.Team> teams)
              throws com.liferay.portal.kernel.exception.SystemException
Sets the teams associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setTeams in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
teams - the teams to be associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUsers

public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns all the users associated with the user group.

Specified by:
getUsers in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
Returns:
the users associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUsers

public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
                                                              int start,
                                                              int end)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the users associated with the user group.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getUsers in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
Returns:
the range of users associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUsers

public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
                                                              int start,
                                                              int end,
                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the users associated with the user group.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getUsers in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
start - the lower bound of the range of user groups
end - the upper bound of the range of user groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of users associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUsersSize

public int getUsersSize(long pk)
                 throws com.liferay.portal.kernel.exception.SystemException
Returns the number of users associated with the user group.

Specified by:
getUsersSize in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
Returns:
the number of users associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsUser

public boolean containsUser(long pk,
                            long userPK)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns true if the user is associated with the user group.

Specified by:
containsUser in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
userPK - the primary key of the user
Returns:
true if the user is associated with the user group; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsUsers

public boolean containsUsers(long pk)
                      throws com.liferay.portal.kernel.exception.SystemException
Returns true if the user group has any users associated with it.

Specified by:
containsUsers in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group to check for associations with users
Returns:
true if the user group has any users associated with it; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUser

public void addUser(long pk,
                    long userPK)
             throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUser in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
userPK - the primary key of the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUser

public void addUser(long pk,
                    com.liferay.portal.model.User user)
             throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUser in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
user - the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUsers

public void addUsers(long pk,
                     long[] userPKs)
              throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUsers in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
userPKs - the primary keys of the users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUsers

public void addUsers(long pk,
                     java.util.List<com.liferay.portal.model.User> users)
              throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUsers in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
users - the users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

clearUsers

public void clearUsers(long pk)
                throws com.liferay.portal.kernel.exception.SystemException
Clears all associations between the user group and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearUsers in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group to clear the associated users from
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUser

public void removeUser(long pk,
                       long userPK)
                throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUser in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
userPK - the primary key of the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUser

public void removeUser(long pk,
                       com.liferay.portal.model.User user)
                throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUser in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
user - the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUsers

public void removeUsers(long pk,
                        long[] userPKs)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUsers in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
userPKs - the primary keys of the users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUsers

public void removeUsers(long pk,
                        java.util.List<com.liferay.portal.model.User> users)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUsers in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
users - the users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setUsers

public void setUsers(long pk,
                     long[] userPKs)
              throws com.liferay.portal.kernel.exception.SystemException
Sets the users associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setUsers in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
userPKs - the primary keys of the users to be associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setUsers

public void setUsers(long pk,
                     java.util.List<com.liferay.portal.model.User> users)
              throws com.liferay.portal.kernel.exception.SystemException
Sets the users associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setUsers in interface com.liferay.portal.service.persistence.UserGroupPersistence
Parameters:
pk - the primary key of the user group
users - the users to be associated with the user group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the user group persistence.


destroy

public void destroy()