Liferay 7.0-ce-b4

com.liferay.portal.service.base
Class UserGroupLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portal.service.base.UserGroupLocalServiceBaseImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, UserGroupLocalService
Direct Known Subclasses:
UserGroupLocalServiceImpl

@ProviderType
public abstract class UserGroupLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements UserGroupLocalService, IdentifiableOSGiService

Provides the base implementation for the user group local service.

This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in UserGroupLocalServiceImpl.

See Also:
UserGroupLocalServiceImpl, UserGroupLocalServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
protected  CounterLocalService counterLocalService
           
protected  ExpandoRowLocalService expandoRowLocalService
           
protected  ExpandoRowPersistence expandoRowPersistence
           
protected  ExportImportConfigurationLocalService exportImportConfigurationLocalService
           
protected  ExportImportConfigurationPersistence exportImportConfigurationPersistence
           
protected  ExportImportLocalService exportImportLocalService
           
protected  GroupFinder groupFinder
           
protected  GroupLocalService groupLocalService
           
protected  GroupPersistence groupPersistence
           
protected  LayoutFinder layoutFinder
           
protected  LayoutLocalService layoutLocalService
           
protected  LayoutPersistence layoutPersistence
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
protected  ResourceLocalService resourceLocalService
           
protected  TeamFinder teamFinder
           
protected  TeamLocalService teamLocalService
           
protected  TeamPersistence teamPersistence
           
protected  UserFinder userFinder
           
protected  UserGroupFinder userGroupFinder
           
protected  UserGroupGroupRoleFinder userGroupGroupRoleFinder
           
protected  UserGroupGroupRoleLocalService userGroupGroupRoleLocalService
           
protected  UserGroupGroupRolePersistence userGroupGroupRolePersistence
           
protected  UserGroupLocalService userGroupLocalService
           
protected  UserGroupPersistence userGroupPersistence
           
protected  UserLocalService userLocalService
           
protected  UserPersistence userPersistence
           
 
Constructor Summary
UserGroupLocalServiceBaseImpl()
           
 
Method Summary
 void addGroupUserGroup(long groupId, long userGroupId)
           
 void addGroupUserGroup(long groupId, UserGroup userGroup)
           
 void addGroupUserGroups(long groupId, List<UserGroup> UserGroups)
           
 void addGroupUserGroups(long groupId, long[] userGroupIds)
           
 void addTeamUserGroup(long teamId, long userGroupId)
           
 void addTeamUserGroup(long teamId, UserGroup userGroup)
           
 void addTeamUserGroups(long teamId, List<UserGroup> UserGroups)
           
 void addTeamUserGroups(long teamId, long[] userGroupIds)
           
 UserGroup addUserGroup(UserGroup userGroup)
          Adds the user group to the database.
 void addUserUserGroup(long userId, long userGroupId)
           
 void addUserUserGroup(long userId, UserGroup userGroup)
           
 void addUserUserGroups(long userId, List<UserGroup> UserGroups)
           
 void addUserUserGroups(long userId, long[] userGroupIds)
           
 void afterPropertiesSet()
           
 void clearGroupUserGroups(long groupId)
           
 void clearTeamUserGroups(long teamId)
           
 void clearUserUserGroups(long userId)
           
 UserGroup createUserGroup(long userGroupId)
          Creates a new user group with the primary key.
 void deleteGroupUserGroup(long groupId, long userGroupId)
           
 void deleteGroupUserGroup(long groupId, UserGroup userGroup)
           
 void deleteGroupUserGroups(long groupId, List<UserGroup> UserGroups)
           
 void deleteGroupUserGroups(long groupId, long[] userGroupIds)
           
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 void deleteTeamUserGroup(long teamId, long userGroupId)
           
 void deleteTeamUserGroup(long teamId, UserGroup userGroup)
           
 void deleteTeamUserGroups(long teamId, List<UserGroup> UserGroups)
           
 void deleteTeamUserGroups(long teamId, long[] userGroupIds)
           
 UserGroup deleteUserGroup(long userGroupId)
          Deletes the user group with the primary key from the database.
 UserGroup deleteUserGroup(UserGroup userGroup)
          Deletes the user group from the database.
 void deleteUserUserGroup(long userId, long userGroupId)
           
 void deleteUserUserGroup(long userId, UserGroup userGroup)
           
 void deleteUserUserGroups(long userId, List<UserGroup> UserGroups)
           
 void deleteUserUserGroups(long userId, long[] userGroupIds)
           
 void destroy()
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 UserGroup fetchUserGroup(long userGroupId)
           
 UserGroup fetchUserGroupByUuidAndCompanyId(String uuid, long companyId)
          Returns the user group with the matching UUID and company.
 ActionableDynamicQuery getActionableDynamicQuery()
           
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 ExpandoRowLocalService getExpandoRowLocalService()
          Returns the expando row local service.
 ExpandoRowPersistence getExpandoRowPersistence()
          Returns the expando row persistence.
 ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
           
 ExportImportConfigurationLocalService getExportImportConfigurationLocalService()
          Returns the export import configuration local service.
 ExportImportConfigurationPersistence getExportImportConfigurationPersistence()
          Returns the export import configuration persistence.
 ExportImportLocalService getExportImportLocalService()
          Returns the export import local service.
 GroupFinder getGroupFinder()
          Returns the group finder.
 GroupLocalService getGroupLocalService()
          Returns the group local service.
 GroupPersistence getGroupPersistence()
          Returns the group persistence.
 long[] getGroupPrimaryKeys(long userGroupId)
          Returns the groupIds of the groups associated with the user group.
 List<UserGroup> getGroupUserGroups(long groupId)
           
 List<UserGroup> getGroupUserGroups(long groupId, int start, int end)
           
 List<UserGroup> getGroupUserGroups(long groupId, int start, int end, OrderByComparator<UserGroup> orderByComparator)
           
 int getGroupUserGroupsCount(long groupId)
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 LayoutFinder getLayoutFinder()
          Returns the layout finder.
 LayoutLocalService getLayoutLocalService()
          Returns the layout local service.
 LayoutPersistence getLayoutPersistence()
          Returns the layout persistence.
protected  Class<?> getModelClass()
           
protected  String getModelClassName()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 ResourceLocalService getResourceLocalService()
          Returns the resource local service.
 TeamFinder getTeamFinder()
          Returns the team finder.
 TeamLocalService getTeamLocalService()
          Returns the team local service.
 TeamPersistence getTeamPersistence()
          Returns the team persistence.
 long[] getTeamPrimaryKeys(long userGroupId)
          Returns the teamIds of the teams associated with the user group.
 List<UserGroup> getTeamUserGroups(long teamId)
           
 List<UserGroup> getTeamUserGroups(long teamId, int start, int end)
           
 List<UserGroup> getTeamUserGroups(long teamId, int start, int end, OrderByComparator<UserGroup> orderByComparator)
           
 int getTeamUserGroupsCount(long teamId)
           
 UserFinder getUserFinder()
          Returns the user finder.
 UserGroup getUserGroup(long userGroupId)
          Returns the user group with the primary key.
 UserGroup getUserGroupByUuidAndCompanyId(String uuid, long companyId)
          Returns the user group with the matching UUID and company.
 UserGroupFinder getUserGroupFinder()
          Returns the user group finder.
 UserGroupGroupRoleFinder getUserGroupGroupRoleFinder()
          Returns the user group group role finder.
 UserGroupGroupRoleLocalService getUserGroupGroupRoleLocalService()
          Returns the user group group role local service.
 UserGroupGroupRolePersistence getUserGroupGroupRolePersistence()
          Returns the user group group role persistence.
 UserGroupLocalService getUserGroupLocalService()
          Returns the user group local service.
 UserGroupPersistence getUserGroupPersistence()
          Returns the user group persistence.
 List<UserGroup> getUserGroups(int start, int end)
          Returns a range of all the user groups.
 int getUserGroupsCount()
          Returns the number of user groups.
 UserLocalService getUserLocalService()
          Returns the user local service.
 UserPersistence getUserPersistence()
          Returns the user persistence.
 long[] getUserPrimaryKeys(long userGroupId)
          Returns the userIds of the users associated with the user group.
 List<UserGroup> getUserUserGroups(long userId)
           
 List<UserGroup> getUserUserGroups(long userId, int start, int end)
           
 List<UserGroup> getUserUserGroups(long userId, int start, int end, OrderByComparator<UserGroup> orderByComparator)
           
 int getUserUserGroupsCount(long userId)
           
 boolean hasGroupUserGroup(long groupId, long userGroupId)
           
 boolean hasGroupUserGroups(long groupId)
           
 boolean hasTeamUserGroup(long teamId, long userGroupId)
           
 boolean hasTeamUserGroups(long teamId)
           
 boolean hasUserUserGroup(long userId, long userGroupId)
           
 boolean hasUserUserGroups(long userId)
           
protected  void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)
           
protected  void runSQL(String sql)
          Performs a SQL query.
 void setCounterLocalService(CounterLocalService counterLocalService)
          Sets the counter local service.
 void setExpandoRowLocalService(ExpandoRowLocalService expandoRowLocalService)
          Sets the expando row local service.
 void setExpandoRowPersistence(ExpandoRowPersistence expandoRowPersistence)
          Sets the expando row persistence.
 void setExportImportConfigurationLocalService(ExportImportConfigurationLocalService exportImportConfigurationLocalService)
          Sets the export import configuration local service.
 void setExportImportConfigurationPersistence(ExportImportConfigurationPersistence exportImportConfigurationPersistence)
          Sets the export import configuration persistence.
 void setExportImportLocalService(ExportImportLocalService exportImportLocalService)
          Sets the export import local service.
 void setGroupFinder(GroupFinder groupFinder)
          Sets the group finder.
 void setGroupLocalService(GroupLocalService groupLocalService)
          Sets the group local service.
 void setGroupPersistence(GroupPersistence groupPersistence)
          Sets the group persistence.
 void setGroupUserGroups(long groupId, long[] userGroupIds)
           
 void setLayoutFinder(LayoutFinder layoutFinder)
          Sets the layout finder.
 void setLayoutLocalService(LayoutLocalService layoutLocalService)
          Sets the layout local service.
 void setLayoutPersistence(LayoutPersistence layoutPersistence)
          Sets the layout persistence.
 void setResourceLocalService(ResourceLocalService resourceLocalService)
          Sets the resource local service.
 void setTeamFinder(TeamFinder teamFinder)
          Sets the team finder.
 void setTeamLocalService(TeamLocalService teamLocalService)
          Sets the team local service.
 void setTeamPersistence(TeamPersistence teamPersistence)
          Sets the team persistence.
 void setTeamUserGroups(long teamId, long[] userGroupIds)
           
 void setUserFinder(UserFinder userFinder)
          Sets the user finder.
 void setUserGroupFinder(UserGroupFinder userGroupFinder)
          Sets the user group finder.
 void setUserGroupGroupRoleFinder(UserGroupGroupRoleFinder userGroupGroupRoleFinder)
          Sets the user group group role finder.
 void setUserGroupGroupRoleLocalService(UserGroupGroupRoleLocalService userGroupGroupRoleLocalService)
          Sets the user group group role local service.
 void setUserGroupGroupRolePersistence(UserGroupGroupRolePersistence userGroupGroupRolePersistence)
          Sets the user group group role persistence.
 void setUserGroupLocalService(UserGroupLocalService userGroupLocalService)
          Sets the user group local service.
 void setUserGroupPersistence(UserGroupPersistence userGroupPersistence)
          Sets the user group persistence.
 void setUserLocalService(UserLocalService userLocalService)
          Sets the user local service.
 void setUserPersistence(UserPersistence userPersistence)
          Sets the user persistence.
 void setUserUserGroups(long userId, long[] userGroupIds)
           
 UserGroup updateUserGroup(UserGroup userGroup)
          Updates the user group in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
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.UserGroupLocalService
addUserGroup, addUserGroup, copyUserGroupLayouts, copyUserGroupLayouts, copyUserGroupLayouts, deleteUserGroups, fetchUserGroup, getGroupUserUserGroups, getUserGroup, getUserGroups, getUserGroups, search, search, search, search, searchCount, searchCount, searchUserGroups, searchUserGroups, unsetGroupUserGroups, unsetTeamUserGroups, updateUserGroup, updateUserGroup
 

Field Detail

userGroupLocalService

@BeanReference(type=UserGroupLocalService.class)
protected UserGroupLocalService userGroupLocalService

userGroupPersistence

@BeanReference(type=UserGroupPersistence.class)
protected UserGroupPersistence userGroupPersistence

userGroupFinder

@BeanReference(type=UserGroupFinder.class)
protected UserGroupFinder userGroupFinder

counterLocalService

@BeanReference(type=CounterLocalService.class)
protected CounterLocalService counterLocalService

groupLocalService

@BeanReference(type=GroupLocalService.class)
protected GroupLocalService groupLocalService

groupPersistence

@BeanReference(type=GroupPersistence.class)
protected GroupPersistence groupPersistence

groupFinder

@BeanReference(type=GroupFinder.class)
protected GroupFinder groupFinder

layoutLocalService

@BeanReference(type=LayoutLocalService.class)
protected LayoutLocalService layoutLocalService

layoutPersistence

@BeanReference(type=LayoutPersistence.class)
protected LayoutPersistence layoutPersistence

layoutFinder

@BeanReference(type=LayoutFinder.class)
protected LayoutFinder layoutFinder

resourceLocalService

@BeanReference(type=ResourceLocalService.class)
protected ResourceLocalService resourceLocalService

teamLocalService

@BeanReference(type=TeamLocalService.class)
protected TeamLocalService teamLocalService

teamPersistence

@BeanReference(type=TeamPersistence.class)
protected TeamPersistence teamPersistence

teamFinder

@BeanReference(type=TeamFinder.class)
protected TeamFinder teamFinder

userLocalService

@BeanReference(type=UserLocalService.class)
protected UserLocalService userLocalService

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

userFinder

@BeanReference(type=UserFinder.class)
protected UserFinder userFinder

expandoRowLocalService

@BeanReference(type=ExpandoRowLocalService.class)
protected ExpandoRowLocalService expandoRowLocalService

expandoRowPersistence

@BeanReference(type=ExpandoRowPersistence.class)
protected ExpandoRowPersistence expandoRowPersistence

exportImportLocalService

@BeanReference(type=ExportImportLocalService.class)
protected ExportImportLocalService exportImportLocalService

exportImportConfigurationLocalService

@BeanReference(type=ExportImportConfigurationLocalService.class)
protected ExportImportConfigurationLocalService exportImportConfigurationLocalService

exportImportConfigurationPersistence

@BeanReference(type=ExportImportConfigurationPersistence.class)
protected ExportImportConfigurationPersistence exportImportConfigurationPersistence

userGroupGroupRoleLocalService

@BeanReference(type=UserGroupGroupRoleLocalService.class)
protected UserGroupGroupRoleLocalService userGroupGroupRoleLocalService

userGroupGroupRolePersistence

@BeanReference(type=UserGroupGroupRolePersistence.class)
protected UserGroupGroupRolePersistence userGroupGroupRolePersistence

userGroupGroupRoleFinder

@BeanReference(type=UserGroupGroupRoleFinder.class)
protected UserGroupGroupRoleFinder userGroupGroupRoleFinder

persistedModelLocalServiceRegistry

@BeanReference(type=PersistedModelLocalServiceRegistry.class)
protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
Constructor Detail

UserGroupLocalServiceBaseImpl

public UserGroupLocalServiceBaseImpl()
Method Detail

addUserGroup

@Indexable(type=REINDEX)
public UserGroup addUserGroup(UserGroup userGroup)
Adds the user group to the database. Also notifies the appropriate model listeners.

Specified by:
addUserGroup in interface UserGroupLocalService
Parameters:
userGroup - the user group
Returns:
the user group that was added

createUserGroup

public UserGroup createUserGroup(long userGroupId)
Creates a new user group with the primary key. Does not add the user group to the database.

Specified by:
createUserGroup in interface UserGroupLocalService
Parameters:
userGroupId - the primary key for the new user group
Returns:
the new user group

deleteUserGroup

@Indexable(type=DELETE)
public UserGroup deleteUserGroup(long userGroupId)
                          throws PortalException
Deletes the user group with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteUserGroup in interface UserGroupLocalService
Parameters:
userGroupId - the primary key of the user group
Returns:
the user group that was removed
Throws:
PortalException - if a user group with the primary key could not be found

deleteUserGroup

@Indexable(type=DELETE)
public UserGroup deleteUserGroup(UserGroup userGroup)
                          throws PortalException
Deletes the user group from the database. Also notifies the appropriate model listeners.

Specified by:
deleteUserGroup in interface UserGroupLocalService
Parameters:
userGroup - the user group
Returns:
the user group that was removed
Throws:
PortalException

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface UserGroupLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface UserGroupLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
Performs a dynamic query on the database and returns a range of the matching rows.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface UserGroupLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface UserGroupLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface UserGroupLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface UserGroupLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchUserGroup

public UserGroup fetchUserGroup(long userGroupId)
Specified by:
fetchUserGroup in interface UserGroupLocalService

fetchUserGroupByUuidAndCompanyId

public UserGroup fetchUserGroupByUuidAndCompanyId(String uuid,
                                                  long companyId)
Returns the user group with the matching UUID and company.

Specified by:
fetchUserGroupByUuidAndCompanyId in interface UserGroupLocalService
Parameters:
uuid - the user group's UUID
companyId - the primary key of the company
Returns:
the matching user group, or null if a matching user group could not be found

getUserGroup

public UserGroup getUserGroup(long userGroupId)
                       throws PortalException
Returns the user group with the primary key.

Specified by:
getUserGroup in interface UserGroupLocalService
Parameters:
userGroupId - the primary key of the user group
Returns:
the user group
Throws:
PortalException - if a user group with the primary key could not be found

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface UserGroupLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface UserGroupLocalService

initActionableDynamicQuery

protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)

getExportActionableDynamicQuery

public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
Specified by:
getExportActionableDynamicQuery in interface UserGroupLocalService

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface UserGroupLocalService
Throws:
PortalException

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface UserGroupLocalService
Throws:
PortalException

getUserGroupByUuidAndCompanyId

public UserGroup getUserGroupByUuidAndCompanyId(String uuid,
                                                long companyId)
                                         throws PortalException
Returns the user group with the matching UUID and company.

Specified by:
getUserGroupByUuidAndCompanyId in interface UserGroupLocalService
Parameters:
uuid - the user group's UUID
companyId - the primary key of the company
Returns:
the matching user group
Throws:
PortalException - if a matching user group could not be found

getUserGroups

public List<UserGroup> getUserGroups(int start,
                                     int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserGroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
getUserGroups in interface UserGroupLocalService
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

getUserGroupsCount

public int getUserGroupsCount()
Returns the number of user groups.

Specified by:
getUserGroupsCount in interface UserGroupLocalService
Returns:
the number of user groups

updateUserGroup

@Indexable(type=REINDEX)
public UserGroup updateUserGroup(UserGroup userGroup)
Updates the user group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateUserGroup in interface UserGroupLocalService
Parameters:
userGroup - the user group
Returns:
the user group that was updated

addGroupUserGroup

public void addGroupUserGroup(long groupId,
                              long userGroupId)
Specified by:
addGroupUserGroup in interface UserGroupLocalService

addGroupUserGroup

public void addGroupUserGroup(long groupId,
                              UserGroup userGroup)
Specified by:
addGroupUserGroup in interface UserGroupLocalService

addGroupUserGroups

public void addGroupUserGroups(long groupId,
                               long[] userGroupIds)
Specified by:
addGroupUserGroups in interface UserGroupLocalService

addGroupUserGroups

public void addGroupUserGroups(long groupId,
                               List<UserGroup> UserGroups)
Specified by:
addGroupUserGroups in interface UserGroupLocalService

clearGroupUserGroups

public void clearGroupUserGroups(long groupId)
Specified by:
clearGroupUserGroups in interface UserGroupLocalService

deleteGroupUserGroup

public void deleteGroupUserGroup(long groupId,
                                 long userGroupId)
Specified by:
deleteGroupUserGroup in interface UserGroupLocalService

deleteGroupUserGroup

public void deleteGroupUserGroup(long groupId,
                                 UserGroup userGroup)
Specified by:
deleteGroupUserGroup in interface UserGroupLocalService

deleteGroupUserGroups

public void deleteGroupUserGroups(long groupId,
                                  long[] userGroupIds)
Specified by:
deleteGroupUserGroups in interface UserGroupLocalService

deleteGroupUserGroups

public void deleteGroupUserGroups(long groupId,
                                  List<UserGroup> UserGroups)
Specified by:
deleteGroupUserGroups in interface UserGroupLocalService

getGroupPrimaryKeys

public long[] getGroupPrimaryKeys(long userGroupId)
Returns the groupIds of the groups associated with the user group.

Specified by:
getGroupPrimaryKeys in interface UserGroupLocalService
Parameters:
userGroupId - the userGroupId of the user group
Returns:
long[] the groupIds of groups associated with the user group

getGroupUserGroups

public List<UserGroup> getGroupUserGroups(long groupId)
Specified by:
getGroupUserGroups in interface UserGroupLocalService

getGroupUserGroups

public List<UserGroup> getGroupUserGroups(long groupId,
                                          int start,
                                          int end)
Specified by:
getGroupUserGroups in interface UserGroupLocalService

getGroupUserGroups

public List<UserGroup> getGroupUserGroups(long groupId,
                                          int start,
                                          int end,
                                          OrderByComparator<UserGroup> orderByComparator)
Specified by:
getGroupUserGroups in interface UserGroupLocalService

getGroupUserGroupsCount

public int getGroupUserGroupsCount(long groupId)
Specified by:
getGroupUserGroupsCount in interface UserGroupLocalService

hasGroupUserGroup

public boolean hasGroupUserGroup(long groupId,
                                 long userGroupId)
Specified by:
hasGroupUserGroup in interface UserGroupLocalService

hasGroupUserGroups

public boolean hasGroupUserGroups(long groupId)
Specified by:
hasGroupUserGroups in interface UserGroupLocalService

setGroupUserGroups

public void setGroupUserGroups(long groupId,
                               long[] userGroupIds)
Specified by:
setGroupUserGroups in interface UserGroupLocalService

addTeamUserGroup

public void addTeamUserGroup(long teamId,
                             long userGroupId)
Specified by:
addTeamUserGroup in interface UserGroupLocalService

addTeamUserGroup

public void addTeamUserGroup(long teamId,
                             UserGroup userGroup)
Specified by:
addTeamUserGroup in interface UserGroupLocalService

addTeamUserGroups

public void addTeamUserGroups(long teamId,
                              long[] userGroupIds)
Specified by:
addTeamUserGroups in interface UserGroupLocalService

addTeamUserGroups

public void addTeamUserGroups(long teamId,
                              List<UserGroup> UserGroups)
Specified by:
addTeamUserGroups in interface UserGroupLocalService

clearTeamUserGroups

public void clearTeamUserGroups(long teamId)
Specified by:
clearTeamUserGroups in interface UserGroupLocalService

deleteTeamUserGroup

public void deleteTeamUserGroup(long teamId,
                                long userGroupId)
Specified by:
deleteTeamUserGroup in interface UserGroupLocalService

deleteTeamUserGroup

public void deleteTeamUserGroup(long teamId,
                                UserGroup userGroup)
Specified by:
deleteTeamUserGroup in interface UserGroupLocalService

deleteTeamUserGroups

public void deleteTeamUserGroups(long teamId,
                                 long[] userGroupIds)
Specified by:
deleteTeamUserGroups in interface UserGroupLocalService

deleteTeamUserGroups

public void deleteTeamUserGroups(long teamId,
                                 List<UserGroup> UserGroups)
Specified by:
deleteTeamUserGroups in interface UserGroupLocalService

getTeamPrimaryKeys

public long[] getTeamPrimaryKeys(long userGroupId)
Returns the teamIds of the teams associated with the user group.

Specified by:
getTeamPrimaryKeys in interface UserGroupLocalService
Parameters:
userGroupId - the userGroupId of the user group
Returns:
long[] the teamIds of teams associated with the user group

getTeamUserGroups

public List<UserGroup> getTeamUserGroups(long teamId)
Specified by:
getTeamUserGroups in interface UserGroupLocalService

getTeamUserGroups

public List<UserGroup> getTeamUserGroups(long teamId,
                                         int start,
                                         int end)
Specified by:
getTeamUserGroups in interface UserGroupLocalService

getTeamUserGroups

public List<UserGroup> getTeamUserGroups(long teamId,
                                         int start,
                                         int end,
                                         OrderByComparator<UserGroup> orderByComparator)
Specified by:
getTeamUserGroups in interface UserGroupLocalService

getTeamUserGroupsCount

public int getTeamUserGroupsCount(long teamId)
Specified by:
getTeamUserGroupsCount in interface UserGroupLocalService

hasTeamUserGroup

public boolean hasTeamUserGroup(long teamId,
                                long userGroupId)
Specified by:
hasTeamUserGroup in interface UserGroupLocalService

hasTeamUserGroups

public boolean hasTeamUserGroups(long teamId)
Specified by:
hasTeamUserGroups in interface UserGroupLocalService

setTeamUserGroups

public void setTeamUserGroups(long teamId,
                              long[] userGroupIds)
Specified by:
setTeamUserGroups in interface UserGroupLocalService

addUserUserGroup

public void addUserUserGroup(long userId,
                             long userGroupId)
Specified by:
addUserUserGroup in interface UserGroupLocalService

addUserUserGroup

public void addUserUserGroup(long userId,
                             UserGroup userGroup)
Specified by:
addUserUserGroup in interface UserGroupLocalService

addUserUserGroups

public void addUserUserGroups(long userId,
                              long[] userGroupIds)
Specified by:
addUserUserGroups in interface UserGroupLocalService

addUserUserGroups

public void addUserUserGroups(long userId,
                              List<UserGroup> UserGroups)
Specified by:
addUserUserGroups in interface UserGroupLocalService

clearUserUserGroups

public void clearUserUserGroups(long userId)
Specified by:
clearUserUserGroups in interface UserGroupLocalService

deleteUserUserGroup

public void deleteUserUserGroup(long userId,
                                long userGroupId)
Specified by:
deleteUserUserGroup in interface UserGroupLocalService

deleteUserUserGroup

public void deleteUserUserGroup(long userId,
                                UserGroup userGroup)
Specified by:
deleteUserUserGroup in interface UserGroupLocalService

deleteUserUserGroups

public void deleteUserUserGroups(long userId,
                                 long[] userGroupIds)
Specified by:
deleteUserUserGroups in interface UserGroupLocalService

deleteUserUserGroups

public void deleteUserUserGroups(long userId,
                                 List<UserGroup> UserGroups)
Specified by:
deleteUserUserGroups in interface UserGroupLocalService

getUserPrimaryKeys

public long[] getUserPrimaryKeys(long userGroupId)
Returns the userIds of the users associated with the user group.

Specified by:
getUserPrimaryKeys in interface UserGroupLocalService
Parameters:
userGroupId - the userGroupId of the user group
Returns:
long[] the userIds of users associated with the user group

getUserUserGroups

public List<UserGroup> getUserUserGroups(long userId)
Specified by:
getUserUserGroups in interface UserGroupLocalService

getUserUserGroups

public List<UserGroup> getUserUserGroups(long userId,
                                         int start,
                                         int end)
Specified by:
getUserUserGroups in interface UserGroupLocalService

getUserUserGroups

public List<UserGroup> getUserUserGroups(long userId,
                                         int start,
                                         int end,
                                         OrderByComparator<UserGroup> orderByComparator)
Specified by:
getUserUserGroups in interface UserGroupLocalService

getUserUserGroupsCount

public int getUserUserGroupsCount(long userId)
Specified by:
getUserUserGroupsCount in interface UserGroupLocalService

hasUserUserGroup

public boolean hasUserUserGroup(long userId,
                                long userGroupId)
Specified by:
hasUserUserGroup in interface UserGroupLocalService

hasUserUserGroups

public boolean hasUserUserGroups(long userId)
Specified by:
hasUserUserGroups in interface UserGroupLocalService

setUserUserGroups

public void setUserUserGroups(long userId,
                              long[] userGroupIds)
                       throws PortalException
Specified by:
setUserUserGroups in interface UserGroupLocalService
Throws:
PortalException

getUserGroupLocalService

public UserGroupLocalService getUserGroupLocalService()
Returns the user group local service.

Returns:
the user group local service

setUserGroupLocalService

public void setUserGroupLocalService(UserGroupLocalService userGroupLocalService)
Sets the user group local service.

Parameters:
userGroupLocalService - the user group local service

getUserGroupPersistence

public UserGroupPersistence getUserGroupPersistence()
Returns the user group persistence.

Returns:
the user group persistence

setUserGroupPersistence

public void setUserGroupPersistence(UserGroupPersistence userGroupPersistence)
Sets the user group persistence.

Parameters:
userGroupPersistence - the user group persistence

getUserGroupFinder

public UserGroupFinder getUserGroupFinder()
Returns the user group finder.

Returns:
the user group finder

setUserGroupFinder

public void setUserGroupFinder(UserGroupFinder userGroupFinder)
Sets the user group finder.

Parameters:
userGroupFinder - the user group finder

getCounterLocalService

public CounterLocalService getCounterLocalService()
Returns the counter local service.

Returns:
the counter local service

setCounterLocalService

public void setCounterLocalService(CounterLocalService counterLocalService)
Sets the counter local service.

Parameters:
counterLocalService - the counter local service

getGroupLocalService

public GroupLocalService getGroupLocalService()
Returns the group local service.

Returns:
the group local service

setGroupLocalService

public void setGroupLocalService(GroupLocalService groupLocalService)
Sets the group local service.

Parameters:
groupLocalService - the group local service

getGroupPersistence

public GroupPersistence getGroupPersistence()
Returns the group persistence.

Returns:
the group persistence

setGroupPersistence

public void setGroupPersistence(GroupPersistence groupPersistence)
Sets the group persistence.

Parameters:
groupPersistence - the group persistence

getGroupFinder

public GroupFinder getGroupFinder()
Returns the group finder.

Returns:
the group finder

setGroupFinder

public void setGroupFinder(GroupFinder groupFinder)
Sets the group finder.

Parameters:
groupFinder - the group finder

getLayoutLocalService

public LayoutLocalService getLayoutLocalService()
Returns the layout local service.

Returns:
the layout local service

setLayoutLocalService

public void setLayoutLocalService(LayoutLocalService layoutLocalService)
Sets the layout local service.

Parameters:
layoutLocalService - the layout local service

getLayoutPersistence

public LayoutPersistence getLayoutPersistence()
Returns the layout persistence.

Returns:
the layout persistence

setLayoutPersistence

public void setLayoutPersistence(LayoutPersistence layoutPersistence)
Sets the layout persistence.

Parameters:
layoutPersistence - the layout persistence

getLayoutFinder

public LayoutFinder getLayoutFinder()
Returns the layout finder.

Returns:
the layout finder

setLayoutFinder

public void setLayoutFinder(LayoutFinder layoutFinder)
Sets the layout finder.

Parameters:
layoutFinder - the layout finder

getResourceLocalService

public ResourceLocalService getResourceLocalService()
Returns the resource local service.

Returns:
the resource local service

setResourceLocalService

public void setResourceLocalService(ResourceLocalService resourceLocalService)
Sets the resource local service.

Parameters:
resourceLocalService - the resource local service

getTeamLocalService

public TeamLocalService getTeamLocalService()
Returns the team local service.

Returns:
the team local service

setTeamLocalService

public void setTeamLocalService(TeamLocalService teamLocalService)
Sets the team local service.

Parameters:
teamLocalService - the team local service

getTeamPersistence

public TeamPersistence getTeamPersistence()
Returns the team persistence.

Returns:
the team persistence

setTeamPersistence

public void setTeamPersistence(TeamPersistence teamPersistence)
Sets the team persistence.

Parameters:
teamPersistence - the team persistence

getTeamFinder

public TeamFinder getTeamFinder()
Returns the team finder.

Returns:
the team finder

setTeamFinder

public void setTeamFinder(TeamFinder teamFinder)
Sets the team finder.

Parameters:
teamFinder - the team finder

getUserLocalService

public UserLocalService getUserLocalService()
Returns the user local service.

Returns:
the user local service

setUserLocalService

public void setUserLocalService(UserLocalService userLocalService)
Sets the user local service.

Parameters:
userLocalService - the user local service

getUserPersistence

public UserPersistence getUserPersistence()
Returns the user persistence.

Returns:
the user persistence

setUserPersistence

public void setUserPersistence(UserPersistence userPersistence)
Sets the user persistence.

Parameters:
userPersistence - the user persistence

getUserFinder

public UserFinder getUserFinder()
Returns the user finder.

Returns:
the user finder

setUserFinder

public void setUserFinder(UserFinder userFinder)
Sets the user finder.

Parameters:
userFinder - the user finder

getExpandoRowLocalService

public ExpandoRowLocalService getExpandoRowLocalService()
Returns the expando row local service.

Returns:
the expando row local service

setExpandoRowLocalService

public void setExpandoRowLocalService(ExpandoRowLocalService expandoRowLocalService)
Sets the expando row local service.

Parameters:
expandoRowLocalService - the expando row local service

getExpandoRowPersistence

public ExpandoRowPersistence getExpandoRowPersistence()
Returns the expando row persistence.

Returns:
the expando row persistence

setExpandoRowPersistence

public void setExpandoRowPersistence(ExpandoRowPersistence expandoRowPersistence)
Sets the expando row persistence.

Parameters:
expandoRowPersistence - the expando row persistence

getExportImportLocalService

public ExportImportLocalService getExportImportLocalService()
Returns the export import local service.

Returns:
the export import local service

setExportImportLocalService

public void setExportImportLocalService(ExportImportLocalService exportImportLocalService)
Sets the export import local service.

Parameters:
exportImportLocalService - the export import local service

getExportImportConfigurationLocalService

public ExportImportConfigurationLocalService getExportImportConfigurationLocalService()
Returns the export import configuration local service.

Returns:
the export import configuration local service

setExportImportConfigurationLocalService

public void setExportImportConfigurationLocalService(ExportImportConfigurationLocalService exportImportConfigurationLocalService)
Sets the export import configuration local service.

Parameters:
exportImportConfigurationLocalService - the export import configuration local service

getExportImportConfigurationPersistence

public ExportImportConfigurationPersistence getExportImportConfigurationPersistence()
Returns the export import configuration persistence.

Returns:
the export import configuration persistence

setExportImportConfigurationPersistence

public void setExportImportConfigurationPersistence(ExportImportConfigurationPersistence exportImportConfigurationPersistence)
Sets the export import configuration persistence.

Parameters:
exportImportConfigurationPersistence - the export import configuration persistence

getUserGroupGroupRoleLocalService

public UserGroupGroupRoleLocalService getUserGroupGroupRoleLocalService()
Returns the user group group role local service.

Returns:
the user group group role local service

setUserGroupGroupRoleLocalService

public void setUserGroupGroupRoleLocalService(UserGroupGroupRoleLocalService userGroupGroupRoleLocalService)
Sets the user group group role local service.

Parameters:
userGroupGroupRoleLocalService - the user group group role local service

getUserGroupGroupRolePersistence

public UserGroupGroupRolePersistence getUserGroupGroupRolePersistence()
Returns the user group group role persistence.

Returns:
the user group group role persistence

setUserGroupGroupRolePersistence

public void setUserGroupGroupRolePersistence(UserGroupGroupRolePersistence userGroupGroupRolePersistence)
Sets the user group group role persistence.

Parameters:
userGroupGroupRolePersistence - the user group group role persistence

getUserGroupGroupRoleFinder

public UserGroupGroupRoleFinder getUserGroupGroupRoleFinder()
Returns the user group group role finder.

Returns:
the user group group role finder

setUserGroupGroupRoleFinder

public void setUserGroupGroupRoleFinder(UserGroupGroupRoleFinder userGroupGroupRoleFinder)
Sets the user group group role finder.

Parameters:
userGroupGroupRoleFinder - the user group group role finder

afterPropertiesSet

public void afterPropertiesSet()

destroy

public void destroy()

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface IdentifiableOSGiService
Specified by:
getOSGiServiceIdentifier in interface UserGroupLocalService
Returns:
the OSGi service identifier

getModelClass

protected Class<?> getModelClass()

getModelClassName

protected String getModelClassName()

runSQL

protected void runSQL(String sql)
Performs a SQL query.

Parameters:
sql - the sql query

Liferay 7.0-ce-b4