|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.GroupLocalServiceWrapper
public class GroupLocalServiceWrapper
This class is a wrapper for GroupLocalService
.
GroupLocalService
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 |
---|
public GroupLocalServiceWrapper(GroupLocalService groupLocalService)
Method Detail |
---|
public Group addGroup(Group group) throws SystemException
addGroup
in interface GroupLocalService
group
- the group to add
SystemException
- if a system exception occurredpublic Group createGroup(long groupId)
createGroup
in interface GroupLocalService
groupId
- the primary key for the new group
public void deleteGroup(long groupId) throws PortalException, SystemException
deleteGroup
in interface GroupLocalService
groupId
- the primary key of the group to delete
PortalException
- if a group with the primary key could not be found
SystemException
- if a system exception occurredpublic void deleteGroup(Group group) throws SystemException
deleteGroup
in interface GroupLocalService
group
- the group to delete
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
in interface GroupLocalService
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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.
dynamicQuery
in interface GroupLocalService
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
dynamicQuery
in interface GroupLocalService
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQueryCount
in interface GroupLocalService
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic Group getGroup(long groupId) throws PortalException, SystemException
getGroup
in interface GroupLocalService
groupId
- the primary key of the group to get
PortalException
- if a group with the primary key could not be found
SystemException
- if a system exception occurredpublic List<Group> getGroups(int start, int end) throws SystemException
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.
getGroups
in interface GroupLocalService
start
- the lower bound of the range of groups to returnend
- the upper bound of the range of groups to return (not inclusive)
SystemException
- if a system exception occurredpublic int getGroupsCount() throws SystemException
getGroupsCount
in interface GroupLocalService
SystemException
- if a system exception occurredpublic Group updateGroup(Group group) throws SystemException
updateGroup
in interface GroupLocalService
group
- the group to update
SystemException
- if a system exception occurredpublic Group updateGroup(Group group, boolean merge) throws SystemException
updateGroup
in interface GroupLocalService
group
- the group to updatemerge
- 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.
SystemException
- if a system exception occurredpublic Group addGroup(long userId, String className, long classPK, String name, String description, int type, String friendlyURL, boolean active, ServiceContext serviceContext) throws PortalException, SystemException
addGroup
in interface GroupLocalService
PortalException
SystemException
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
addGroup
in interface GroupLocalService
PortalException
SystemException
public void addRoleGroups(long roleId, long[] groupIds) throws SystemException
addRoleGroups
in interface GroupLocalService
SystemException
public void addUserGroups(long userId, long[] groupIds) throws SystemException
addUserGroups
in interface GroupLocalService
SystemException
public void checkCompanyGroup(long companyId) throws PortalException, SystemException
checkCompanyGroup
in interface GroupLocalService
PortalException
SystemException
public void checkSystemGroups(long companyId) throws PortalException, SystemException
checkSystemGroups
in interface GroupLocalService
PortalException
SystemException
public Group getCompanyGroup(long companyId) throws PortalException, SystemException
getCompanyGroup
in interface GroupLocalService
PortalException
SystemException
public List<Group> getCompanyGroups(long companyId, int start, int end) throws SystemException
getCompanyGroups
in interface GroupLocalService
SystemException
public int getCompanyGroupsCount(long companyId) throws SystemException
getCompanyGroupsCount
in interface GroupLocalService
SystemException
public Group getFriendlyURLGroup(long companyId, String friendlyURL) throws PortalException, SystemException
getFriendlyURLGroup
in interface GroupLocalService
PortalException
SystemException
public Group getGroup(long companyId, String name) throws PortalException, SystemException
getGroup
in interface GroupLocalService
PortalException
SystemException
public List<Group> getGroups(long[] groupIds) throws PortalException, SystemException
getGroups
in interface GroupLocalService
PortalException
SystemException
public Group getLayoutGroup(long companyId, long plid) throws PortalException, SystemException
getLayoutGroup
in interface GroupLocalService
PortalException
SystemException
public Group getLayoutPrototypeGroup(long companyId, long layoutPrototypeId) throws PortalException, SystemException
getLayoutPrototypeGroup
in interface GroupLocalService
PortalException
SystemException
public Group getLayoutSetPrototypeGroup(long companyId, long layoutSetPrototypeId) throws PortalException, SystemException
getLayoutSetPrototypeGroup
in interface GroupLocalService
PortalException
SystemException
public List<Group> getLiveGroups() throws SystemException
getLiveGroups
in interface GroupLocalService
SystemException
public List<Group> getNoLayoutsGroups(String className, boolean privateLayout, int start, int end) throws SystemException
getNoLayoutsGroups
in interface GroupLocalService
SystemException
public List<Group> getNullFriendlyURLGroups() throws SystemException
getNullFriendlyURLGroups
in interface GroupLocalService
SystemException
public Group getOrganizationGroup(long companyId, long organizationId) throws PortalException, SystemException
getOrganizationGroup
in interface GroupLocalService
PortalException
SystemException
public List<Group> getOrganizationsGroups(List<Organization> organizations)
getOrganizationsGroups
in interface GroupLocalService
public List<Group> getOrganizationsRelatedGroups(List<Organization> organizations) throws SystemException
getOrganizationsRelatedGroups
in interface GroupLocalService
SystemException
public List<Group> getRoleGroups(long roleId) throws SystemException
getRoleGroups
in interface GroupLocalService
SystemException
public Group getStagingGroup(long liveGroupId) throws PortalException, SystemException
getStagingGroup
in interface GroupLocalService
PortalException
SystemException
public Group getUserGroup(long companyId, long userId) throws PortalException, SystemException
getUserGroup
in interface GroupLocalService
PortalException
SystemException
public Group getUserGroupGroup(long companyId, long userGroupId) throws PortalException, SystemException
getUserGroupGroup
in interface GroupLocalService
PortalException
SystemException
public List<Group> getUserGroups(long userId) throws PortalException, SystemException
getUserGroups
in interface GroupLocalService
PortalException
SystemException
public List<Group> getUserGroups(long userId, boolean inherit) throws PortalException, SystemException
getUserGroups
in interface GroupLocalService
PortalException
SystemException
public List<Group> getUserGroups(long userId, int start, int end) throws PortalException, SystemException
getUserGroups
in interface GroupLocalService
PortalException
SystemException
public List<Group> getUserGroups(long userId, boolean inherit, int start, int end) throws PortalException, SystemException
getUserGroups
in interface GroupLocalService
PortalException
SystemException
public List<Group> getUserGroupsGroups(List<UserGroup> userGroups) throws PortalException, SystemException
getUserGroupsGroups
in interface GroupLocalService
PortalException
SystemException
public List<Group> getUserGroupsRelatedGroups(List<UserGroup> userGroups) throws SystemException
getUserGroupsRelatedGroups
in interface GroupLocalService
SystemException
public List<Group> getUserOrganizationsGroups(long userId, int start, int end) throws PortalException, SystemException
getUserOrganizationsGroups
in interface GroupLocalService
PortalException
SystemException
public boolean hasRoleGroup(long roleId, long groupId) throws SystemException
hasRoleGroup
in interface GroupLocalService
SystemException
public boolean hasStagingGroup(long liveGroupId) throws SystemException
hasStagingGroup
in interface GroupLocalService
SystemException
public boolean hasUserGroup(long userId, long groupId) throws SystemException
hasUserGroup
in interface GroupLocalService
SystemException
public List<Group> search(long companyId, String name, String description, LinkedHashMap<String,Object> params, int start, int end) throws SystemException
search
in interface GroupLocalService
SystemException
public List<Group> search(long companyId, String name, String description, LinkedHashMap<String,Object> params, int start, int end, OrderByComparator obc) throws SystemException
search
in interface GroupLocalService
SystemException
public int searchCount(long companyId, String name, String description, LinkedHashMap<String,Object> params) throws SystemException
searchCount
in interface GroupLocalService
SystemException
public void setRoleGroups(long roleId, long[] groupIds) throws SystemException
setRoleGroups
in interface GroupLocalService
SystemException
public void unsetRoleGroups(long roleId, long[] groupIds) throws SystemException
unsetRoleGroups
in interface GroupLocalService
SystemException
public void unsetUserGroups(long userId, long[] groupIds) throws SystemException
unsetUserGroups
in interface GroupLocalService
SystemException
public void updateAsset(long userId, Group group, long[] assetCategoryIds, String[] assetTagNames) throws PortalException, SystemException
updateAsset
in interface GroupLocalService
PortalException
SystemException
public Group updateFriendlyURL(long groupId, String friendlyURL) throws PortalException, SystemException
updateFriendlyURL
in interface GroupLocalService
PortalException
SystemException
public Group updateGroup(long groupId, String name, String description, int type, String friendlyURL, boolean active, ServiceContext serviceContext) throws PortalException, SystemException
updateGroup
in interface GroupLocalService
PortalException
SystemException
public Group updateGroup(long groupId, String typeSettings) throws PortalException, SystemException
updateGroup
in interface GroupLocalService
PortalException
SystemException
public Group updateWorkflow(long groupId, boolean workflowEnabled, int workflowStages, String workflowRoleNames) throws PortalException, SystemException
updateWorkflow
in interface GroupLocalService
PortalException
SystemException
public GroupLocalService getWrappedGroupLocalService()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |