Liferay 6.0.5

com.liferay.portal.service
Class GroupLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portal.service.GroupLocalServiceWrapper
All Implemented Interfaces:
GroupLocalService

public class GroupLocalServiceWrapper
extends Object
implements GroupLocalService

This class is a wrapper for GroupLocalService.

See Also:
GroupLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
GroupLocalServiceWrapper(GroupLocalService groupLocalService)
           
 
Method Summary
 Group addGroup(Group group)
          Adds the group to the database.
 Group addGroup(long userId, String className, long classPK, long liveGroupId, String name, String description, int type, String friendlyURL, boolean active, ServiceContext serviceContext)
           
 Group addGroup(long userId, String className, long classPK, String name, String description, int type, String friendlyURL, boolean active, ServiceContext serviceContext)
           
 void addRoleGroups(long roleId, long[] groupIds)
           
 void addUserGroups(long userId, long[] groupIds)
           
 void checkCompanyGroup(long companyId)
           
 void checkSystemGroups(long companyId)
           
 Group createGroup(long groupId)
          Creates a new group with the primary key.
 void deleteGroup(Group group)
          Deletes the group from the database.
 void deleteGroup(long groupId)
          Deletes the group with the primary key from the database.
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 Group getCompanyGroup(long companyId)
           
 List<Group> getCompanyGroups(long companyId, int start, int end)
           
 int getCompanyGroupsCount(long companyId)
           
 Group getFriendlyURLGroup(long companyId, String friendlyURL)
           
 Group getGroup(long groupId)
          Gets the group with the primary key.
 Group getGroup(long companyId, String name)
           
 List<Group> getGroups(int start, int end)
          Gets a range of all the groups.
 List<Group> getGroups(long[] groupIds)
           
 int getGroupsCount()
          Gets the number of groups.
 Group getLayoutGroup(long companyId, long plid)
           
 Group getLayoutPrototypeGroup(long companyId, long layoutPrototypeId)
           
 Group getLayoutSetPrototypeGroup(long companyId, long layoutSetPrototypeId)
           
 List<Group> getLiveGroups()
           
 List<Group> getNoLayoutsGroups(String className, boolean privateLayout, int start, int end)
           
 List<Group> getNullFriendlyURLGroups()
           
 Group getOrganizationGroup(long companyId, long organizationId)
           
 List<Group> getOrganizationsGroups(List<Organization> organizations)
           
 List<Group> getOrganizationsRelatedGroups(List<Organization> organizations)
           
 List<Group> getRoleGroups(long roleId)
           
 Group getStagingGroup(long liveGroupId)
           
 Group getUserGroup(long companyId, long userId)
           
 Group getUserGroupGroup(long companyId, long userGroupId)
           
 List<Group> getUserGroups(long userId)
           
 List<Group> getUserGroups(long userId, boolean inherit)
           
 List<Group> getUserGroups(long userId, boolean inherit, int start, int end)
           
 List<Group> getUserGroups(long userId, int start, int end)
           
 List<Group> getUserGroupsGroups(List<UserGroup> userGroups)
           
 List<Group> getUserGroupsRelatedGroups(List<UserGroup> userGroups)
           
 List<Group> getUserOrganizationsGroups(long userId, int start, int end)
           
 GroupLocalService getWrappedGroupLocalService()
           
 boolean hasRoleGroup(long roleId, long groupId)
           
 boolean hasStagingGroup(long liveGroupId)
           
 boolean hasUserGroup(long userId, long groupId)
           
 List<Group> search(long companyId, String name, String description, LinkedHashMap<String,Object> params, int start, int end)
           
 List<Group> search(long companyId, String name, String description, LinkedHashMap<String,Object> params, int start, int end, OrderByComparator obc)
           
 int searchCount(long companyId, String name, String description, LinkedHashMap<String,Object> params)
           
 void setRoleGroups(long roleId, long[] groupIds)
           
 void unsetRoleGroups(long roleId, long[] groupIds)
           
 void unsetUserGroups(long userId, long[] groupIds)
           
 void updateAsset(long userId, Group group, long[] assetCategoryIds, String[] assetTagNames)
           
 Group updateFriendlyURL(long groupId, String friendlyURL)
           
 Group updateGroup(Group group)
          Updates the group in the database.
 Group updateGroup(Group group, boolean merge)
          Updates the group in the database.
 Group updateGroup(long groupId, String typeSettings)
           
 Group updateGroup(long groupId, String name, String description, int type, String friendlyURL, boolean active, ServiceContext serviceContext)
           
 Group updateWorkflow(long groupId, boolean workflowEnabled, int workflowStages, String workflowRoleNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupLocalServiceWrapper

public GroupLocalServiceWrapper(GroupLocalService groupLocalService)
Method Detail

addGroup

public Group addGroup(Group group)
               throws SystemException
Adds the group to the database. Also notifies the appropriate model listeners.

Specified by:
addGroup in interface GroupLocalService
Parameters:
group - the group to add
Returns:
the group that was added
Throws:
SystemException - if a system exception occurred

createGroup

public Group createGroup(long groupId)
Creates a new group with the primary key. Does not add the group to the database.

Specified by:
createGroup in interface GroupLocalService
Parameters:
groupId - the primary key for the new group
Returns:
the new group

deleteGroup

public void deleteGroup(long groupId)
                 throws PortalException,
                        SystemException
Deletes the group with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteGroup in interface GroupLocalService
Parameters:
groupId - the primary key of the group to delete
Throws:
PortalException - if a group with the primary key could not be found
SystemException - if a system exception occurred

deleteGroup

public void deleteGroup(Group group)
                 throws SystemException
Deletes the group from the database. Also notifies the appropriate model listeners.

Specified by:
deleteGroup in interface GroupLocalService
Parameters:
group - the group to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface GroupLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
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.

Specified by:
dynamicQuery in interface GroupLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
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.

Specified by:
dynamicQuery in interface GroupLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface GroupLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getGroup

public Group getGroup(long groupId)
               throws PortalException,
                      SystemException
Gets the group with the primary key.

Specified by:
getGroup in interface GroupLocalService
Parameters:
groupId - the primary key of the group to get
Returns:
the group
Throws:
PortalException - if a group with the primary key could not be found
SystemException - if a system exception occurred

getGroups

public List<Group> getGroups(int start,
                             int end)
                      throws SystemException
Gets a range of all the 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:
getGroups in interface GroupLocalService
Parameters:
start - the lower bound of the range of groups to return
end - the upper bound of the range of groups to return (not inclusive)
Returns:
the range of groups
Throws:
SystemException - if a system exception occurred

getGroupsCount

public int getGroupsCount()
                   throws SystemException
Gets the number of groups.

Specified by:
getGroupsCount in interface GroupLocalService
Returns:
the number of groups
Throws:
SystemException - if a system exception occurred

updateGroup

public Group updateGroup(Group group)
                  throws SystemException
Updates the group in the database. Also notifies the appropriate model listeners.

Specified by:
updateGroup in interface GroupLocalService
Parameters:
group - the group to update
Returns:
the group that was updated
Throws:
SystemException - if a system exception occurred

updateGroup

public Group updateGroup(Group group,
                         boolean merge)
                  throws SystemException
Updates the group in the database. Also notifies the appropriate model listeners.

Specified by:
updateGroup in interface GroupLocalService
Parameters:
group - the group to update
merge - whether to merge the group with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the group that was updated
Throws:
SystemException - if a system exception occurred

addGroup

public Group addGroup(long userId,
                      String className,
                      long classPK,
                      String name,
                      String description,
                      int type,
                      String friendlyURL,
                      boolean active,
                      ServiceContext serviceContext)
               throws PortalException,
                      SystemException
Specified by:
addGroup in interface GroupLocalService
Throws:
PortalException
SystemException

addGroup

public Group addGroup(long userId,
                      String className,
                      long classPK,
                      long liveGroupId,
                      String name,
                      String description,
                      int type,
                      String friendlyURL,
                      boolean active,
                      ServiceContext serviceContext)
               throws PortalException,
                      SystemException
Specified by:
addGroup in interface GroupLocalService
Throws:
PortalException
SystemException

addRoleGroups

public void addRoleGroups(long roleId,
                          long[] groupIds)
                   throws SystemException
Specified by:
addRoleGroups in interface GroupLocalService
Throws:
SystemException

addUserGroups

public void addUserGroups(long userId,
                          long[] groupIds)
                   throws SystemException
Specified by:
addUserGroups in interface GroupLocalService
Throws:
SystemException

checkCompanyGroup

public void checkCompanyGroup(long companyId)
                       throws PortalException,
                              SystemException
Specified by:
checkCompanyGroup in interface GroupLocalService
Throws:
PortalException
SystemException

checkSystemGroups

public void checkSystemGroups(long companyId)
                       throws PortalException,
                              SystemException
Specified by:
checkSystemGroups in interface GroupLocalService
Throws:
PortalException
SystemException

getCompanyGroup

public Group getCompanyGroup(long companyId)
                      throws PortalException,
                             SystemException
Specified by:
getCompanyGroup in interface GroupLocalService
Throws:
PortalException
SystemException

getCompanyGroups

public List<Group> getCompanyGroups(long companyId,
                                    int start,
                                    int end)
                             throws SystemException
Specified by:
getCompanyGroups in interface GroupLocalService
Throws:
SystemException

getCompanyGroupsCount

public int getCompanyGroupsCount(long companyId)
                          throws SystemException
Specified by:
getCompanyGroupsCount in interface GroupLocalService
Throws:
SystemException

getFriendlyURLGroup

public Group getFriendlyURLGroup(long companyId,
                                 String friendlyURL)
                          throws PortalException,
                                 SystemException
Specified by:
getFriendlyURLGroup in interface GroupLocalService
Throws:
PortalException
SystemException

getGroup

public Group getGroup(long companyId,
                      String name)
               throws PortalException,
                      SystemException
Specified by:
getGroup in interface GroupLocalService
Throws:
PortalException
SystemException

getGroups

public List<Group> getGroups(long[] groupIds)
                      throws PortalException,
                             SystemException
Specified by:
getGroups in interface GroupLocalService
Throws:
PortalException
SystemException

getLayoutGroup

public Group getLayoutGroup(long companyId,
                            long plid)
                     throws PortalException,
                            SystemException
Specified by:
getLayoutGroup in interface GroupLocalService
Throws:
PortalException
SystemException

getLayoutPrototypeGroup

public Group getLayoutPrototypeGroup(long companyId,
                                     long layoutPrototypeId)
                              throws PortalException,
                                     SystemException
Specified by:
getLayoutPrototypeGroup in interface GroupLocalService
Throws:
PortalException
SystemException

getLayoutSetPrototypeGroup

public Group getLayoutSetPrototypeGroup(long companyId,
                                        long layoutSetPrototypeId)
                                 throws PortalException,
                                        SystemException
Specified by:
getLayoutSetPrototypeGroup in interface GroupLocalService
Throws:
PortalException
SystemException

getLiveGroups

public List<Group> getLiveGroups()
                          throws SystemException
Specified by:
getLiveGroups in interface GroupLocalService
Throws:
SystemException

getNoLayoutsGroups

public List<Group> getNoLayoutsGroups(String className,
                                      boolean privateLayout,
                                      int start,
                                      int end)
                               throws SystemException
Specified by:
getNoLayoutsGroups in interface GroupLocalService
Throws:
SystemException

getNullFriendlyURLGroups

public List<Group> getNullFriendlyURLGroups()
                                     throws SystemException
Specified by:
getNullFriendlyURLGroups in interface GroupLocalService
Throws:
SystemException

getOrganizationGroup

public Group getOrganizationGroup(long companyId,
                                  long organizationId)
                           throws PortalException,
                                  SystemException
Specified by:
getOrganizationGroup in interface GroupLocalService
Throws:
PortalException
SystemException

getOrganizationsGroups

public List<Group> getOrganizationsGroups(List<Organization> organizations)
Specified by:
getOrganizationsGroups in interface GroupLocalService

getOrganizationsRelatedGroups

public List<Group> getOrganizationsRelatedGroups(List<Organization> organizations)
                                          throws SystemException
Specified by:
getOrganizationsRelatedGroups in interface GroupLocalService
Throws:
SystemException

getRoleGroups

public List<Group> getRoleGroups(long roleId)
                          throws SystemException
Specified by:
getRoleGroups in interface GroupLocalService
Throws:
SystemException

getStagingGroup

public Group getStagingGroup(long liveGroupId)
                      throws PortalException,
                             SystemException
Specified by:
getStagingGroup in interface GroupLocalService
Throws:
PortalException
SystemException

getUserGroup

public Group getUserGroup(long companyId,
                          long userId)
                   throws PortalException,
                          SystemException
Specified by:
getUserGroup in interface GroupLocalService
Throws:
PortalException
SystemException

getUserGroupGroup

public Group getUserGroupGroup(long companyId,
                               long userGroupId)
                        throws PortalException,
                               SystemException
Specified by:
getUserGroupGroup in interface GroupLocalService
Throws:
PortalException
SystemException

getUserGroups

public List<Group> getUserGroups(long userId)
                          throws PortalException,
                                 SystemException
Specified by:
getUserGroups in interface GroupLocalService
Throws:
PortalException
SystemException

getUserGroups

public List<Group> getUserGroups(long userId,
                                 boolean inherit)
                          throws PortalException,
                                 SystemException
Specified by:
getUserGroups in interface GroupLocalService
Throws:
PortalException
SystemException

getUserGroups

public List<Group> getUserGroups(long userId,
                                 int start,
                                 int end)
                          throws PortalException,
                                 SystemException
Specified by:
getUserGroups in interface GroupLocalService
Throws:
PortalException
SystemException

getUserGroups

public List<Group> getUserGroups(long userId,
                                 boolean inherit,
                                 int start,
                                 int end)
                          throws PortalException,
                                 SystemException
Specified by:
getUserGroups in interface GroupLocalService
Throws:
PortalException
SystemException

getUserGroupsGroups

public List<Group> getUserGroupsGroups(List<UserGroup> userGroups)
                                throws PortalException,
                                       SystemException
Specified by:
getUserGroupsGroups in interface GroupLocalService
Throws:
PortalException
SystemException

getUserGroupsRelatedGroups

public List<Group> getUserGroupsRelatedGroups(List<UserGroup> userGroups)
                                       throws SystemException
Specified by:
getUserGroupsRelatedGroups in interface GroupLocalService
Throws:
SystemException

getUserOrganizationsGroups

public List<Group> getUserOrganizationsGroups(long userId,
                                              int start,
                                              int end)
                                       throws PortalException,
                                              SystemException
Specified by:
getUserOrganizationsGroups in interface GroupLocalService
Throws:
PortalException
SystemException

hasRoleGroup

public boolean hasRoleGroup(long roleId,
                            long groupId)
                     throws SystemException
Specified by:
hasRoleGroup in interface GroupLocalService
Throws:
SystemException

hasStagingGroup

public boolean hasStagingGroup(long liveGroupId)
                        throws SystemException
Specified by:
hasStagingGroup in interface GroupLocalService
Throws:
SystemException

hasUserGroup

public boolean hasUserGroup(long userId,
                            long groupId)
                     throws SystemException
Specified by:
hasUserGroup in interface GroupLocalService
Throws:
SystemException

search

public List<Group> search(long companyId,
                          String name,
                          String description,
                          LinkedHashMap<String,Object> params,
                          int start,
                          int end)
                   throws SystemException
Specified by:
search in interface GroupLocalService
Throws:
SystemException

search

public List<Group> search(long companyId,
                          String name,
                          String description,
                          LinkedHashMap<String,Object> params,
                          int start,
                          int end,
                          OrderByComparator obc)
                   throws SystemException
Specified by:
search in interface GroupLocalService
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       String name,
                       String description,
                       LinkedHashMap<String,Object> params)
                throws SystemException
Specified by:
searchCount in interface GroupLocalService
Throws:
SystemException

setRoleGroups

public void setRoleGroups(long roleId,
                          long[] groupIds)
                   throws SystemException
Specified by:
setRoleGroups in interface GroupLocalService
Throws:
SystemException

unsetRoleGroups

public void unsetRoleGroups(long roleId,
                            long[] groupIds)
                     throws SystemException
Specified by:
unsetRoleGroups in interface GroupLocalService
Throws:
SystemException

unsetUserGroups

public void unsetUserGroups(long userId,
                            long[] groupIds)
                     throws SystemException
Specified by:
unsetUserGroups in interface GroupLocalService
Throws:
SystemException

updateAsset

public void updateAsset(long userId,
                        Group group,
                        long[] assetCategoryIds,
                        String[] assetTagNames)
                 throws PortalException,
                        SystemException
Specified by:
updateAsset in interface GroupLocalService
Throws:
PortalException
SystemException

updateFriendlyURL

public Group updateFriendlyURL(long groupId,
                               String friendlyURL)
                        throws PortalException,
                               SystemException
Specified by:
updateFriendlyURL in interface GroupLocalService
Throws:
PortalException
SystemException

updateGroup

public Group updateGroup(long groupId,
                         String name,
                         String description,
                         int type,
                         String friendlyURL,
                         boolean active,
                         ServiceContext serviceContext)
                  throws PortalException,
                         SystemException
Specified by:
updateGroup in interface GroupLocalService
Throws:
PortalException
SystemException

updateGroup

public Group updateGroup(long groupId,
                         String typeSettings)
                  throws PortalException,
                         SystemException
Specified by:
updateGroup in interface GroupLocalService
Throws:
PortalException
SystemException

updateWorkflow

public Group updateWorkflow(long groupId,
                            boolean workflowEnabled,
                            int workflowStages,
                            String workflowRoleNames)
                     throws PortalException,
                            SystemException
Specified by:
updateWorkflow in interface GroupLocalService
Throws:
PortalException
SystemException

getWrappedGroupLocalService

public GroupLocalService getWrappedGroupLocalService()

Liferay 6.0.5