|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.RoleLocalServiceWrapper
public class RoleLocalServiceWrapper
This class is a wrapper for RoleLocalService.
RoleLocalService| Constructor Summary | |
|---|---|
RoleLocalServiceWrapper(RoleLocalService roleLocalService)
|
|
| Method Summary | |
|---|---|
Role |
addRole(long userId,
long companyId,
String name,
Map<Locale,String> titleMap,
String description,
int type)
|
Role |
addRole(long userId,
long companyId,
String name,
Map<Locale,String> titleMap,
String description,
int type,
String className,
long classPK)
|
Role |
addRole(Role role)
Adds the role to the database. |
void |
addUserRoles(long userId,
long[] roleIds)
|
void |
checkSystemRoles()
|
void |
checkSystemRoles(long companyId)
|
Role |
createRole(long roleId)
Creates a new role with the primary key. |
void |
deleteRole(long roleId)
Deletes the role with the primary key from the database. |
void |
deleteRole(Role role)
Deletes the role 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)
Returns the number of rows that match the dynamic query. |
String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
Role |
getDefaultGroupRole(long groupId)
|
List<Role> |
getGroupRoles(long groupId)
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
Map<String,List<String>> |
getResourceRoles(long companyId,
String name,
int scope,
String primKey)
|
List<Role> |
getResourceRoles(long companyId,
String name,
int scope,
String primKey,
String actionId)
|
Role |
getRole(long roleId)
Returns the role with the primary key. |
Role |
getRole(long companyId,
String name)
|
List<Role> |
getRoles(int start,
int end)
Returns a range of all the roles. |
List<Role> |
getRoles(int type,
String subtype)
|
List<Role> |
getRoles(long companyId)
|
List<Role> |
getRoles(long[] roleIds)
|
int |
getRolesCount()
Returns the number of roles. |
List<Role> |
getSubtypeRoles(String subtype)
|
int |
getSubtypeRolesCount(String subtype)
|
Role |
getTeamRole(long companyId,
long teamId)
|
List<Role> |
getUserGroupGroupRoles(long userId,
long groupId)
|
List<Role> |
getUserGroupRoles(long userId,
long groupId)
|
List<Role> |
getUserRelatedRoles(long userId,
List<Group> groups)
|
List<Role> |
getUserRelatedRoles(long userId,
long groupId)
|
List<Role> |
getUserRelatedRoles(long userId,
long[] groupIds)
|
List<Role> |
getUserRoles(long userId)
|
RoleLocalService |
getWrappedRoleLocalService()
|
boolean |
hasUserRole(long userId,
long roleId)
|
boolean |
hasUserRole(long userId,
long companyId,
String name,
boolean inherited)
Returns true if the user has the regular role. |
boolean |
hasUserRoles(long userId,
long companyId,
String[] names,
boolean inherited)
Returns true if the user has any one of the specified
regular roles. |
List<Role> |
search(long companyId,
String keywords,
Integer[] types,
int start,
int end,
OrderByComparator obc)
|
List<Role> |
search(long companyId,
String keywords,
Integer[] types,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator obc)
|
List<Role> |
search(long companyId,
String name,
String description,
Integer[] types,
int start,
int end,
OrderByComparator obc)
|
List<Role> |
search(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator obc)
|
int |
searchCount(long companyId,
String keywords,
Integer[] types)
|
int |
searchCount(long companyId,
String keywords,
Integer[] types,
LinkedHashMap<String,Object> params)
|
int |
searchCount(long companyId,
String name,
String description,
Integer[] types)
|
int |
searchCount(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params)
|
void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
void |
setUserRoles(long userId,
long[] roleIds)
|
void |
setWrappedRoleLocalService(RoleLocalService roleLocalService)
|
void |
unsetUserRoles(long userId,
long[] roleIds)
|
Role |
updateRole(long roleId,
String name,
Map<Locale,String> titleMap,
String description,
String subtype)
|
Role |
updateRole(Role role)
Updates the role in the database or adds it if it does not yet exist. |
Role |
updateRole(Role role,
boolean merge)
Updates the role in the database or adds it if it does not yet exist. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoleLocalServiceWrapper(RoleLocalService roleLocalService)
| Method Detail |
|---|
public Role addRole(Role role)
throws SystemException
addRole in interface RoleLocalServicerole - the role
SystemException - if a system exception occurredpublic Role createRole(long roleId)
createRole in interface RoleLocalServiceroleId - the primary key for the new role
public void deleteRole(long roleId)
throws PortalException,
SystemException
deleteRole in interface RoleLocalServiceroleId - the primary key of the role
PortalException - if a role with the primary key could not be found
SystemException - if a system exception occurred
public void deleteRole(Role role)
throws PortalException,
SystemException
deleteRole in interface RoleLocalServicerole - the role
PortalException
SystemException - if a system exception occurred
public List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
dynamicQuery in interface RoleLocalServicedynamicQuery - the dynamic query
SystemException - if a system exception occurred
public 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 RoleLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)
SystemException - if a system exception occurred
public 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 RoleLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
dynamicQueryCount in interface RoleLocalServicedynamicQuery - the dynamic query
SystemException - if a system exception occurred
public Role getRole(long roleId)
throws PortalException,
SystemException
getRole in interface RoleLocalServiceroleId - the primary key of the role
PortalException - if a role with the primary key could not be found
SystemException - if a system exception occurred
public PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException,
SystemException
getPersistedModel in interface PersistedModelLocalServicegetPersistedModel in interface RoleLocalServicePortalException
SystemException
public List<Role> getRoles(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.
getRoles in interface RoleLocalServicestart - the lower bound of the range of rolesend - the upper bound of the range of roles (not inclusive)
SystemException - if a system exception occurred
public int getRolesCount()
throws SystemException
getRolesCount in interface RoleLocalServiceSystemException - if a system exception occurred
public Role updateRole(Role role)
throws SystemException
updateRole in interface RoleLocalServicerole - the role
SystemException - if a system exception occurred
public Role updateRole(Role role,
boolean merge)
throws SystemException
updateRole in interface RoleLocalServicerole - the rolemerge - whether to merge the role 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 String getBeanIdentifier()
getBeanIdentifier in interface RoleLocalServicepublic void setBeanIdentifier(String beanIdentifier)
setBeanIdentifier in interface RoleLocalServicebeanIdentifier - the Spring bean ID for this bean
public Role addRole(long userId,
long companyId,
String name,
Map<Locale,String> titleMap,
String description,
int type)
throws PortalException,
SystemException
addRole in interface RoleLocalServicePortalException
SystemException
public Role addRole(long userId,
long companyId,
String name,
Map<Locale,String> titleMap,
String description,
int type,
String className,
long classPK)
throws PortalException,
SystemException
addRole in interface RoleLocalServicePortalException
SystemException
public void addUserRoles(long userId,
long[] roleIds)
throws PortalException,
SystemException
addUserRoles in interface RoleLocalServicePortalException
SystemException
public void checkSystemRoles()
throws PortalException,
SystemException
checkSystemRoles in interface RoleLocalServicePortalException
SystemException
public void checkSystemRoles(long companyId)
throws PortalException,
SystemException
checkSystemRoles in interface RoleLocalServicePortalException
SystemException
public Role getDefaultGroupRole(long groupId)
throws PortalException,
SystemException
getDefaultGroupRole in interface RoleLocalServicePortalException
SystemException
public List<Role> getGroupRoles(long groupId)
throws SystemException
getGroupRoles in interface RoleLocalServiceSystemException
public Map<String,List<String>> getResourceRoles(long companyId,
String name,
int scope,
String primKey)
throws SystemException
getResourceRoles in interface RoleLocalServiceSystemException
public List<Role> getResourceRoles(long companyId,
String name,
int scope,
String primKey,
String actionId)
throws SystemException
getResourceRoles in interface RoleLocalServiceSystemException
public Role getRole(long companyId,
String name)
throws PortalException,
SystemException
getRole in interface RoleLocalServicePortalException
SystemException
public List<Role> getRoles(int type,
String subtype)
throws SystemException
getRoles in interface RoleLocalServiceSystemException
public List<Role> getRoles(long companyId)
throws SystemException
getRoles in interface RoleLocalServiceSystemException
public List<Role> getRoles(long[] roleIds)
throws PortalException,
SystemException
getRoles in interface RoleLocalServicePortalException
SystemException
public List<Role> getSubtypeRoles(String subtype)
throws SystemException
getSubtypeRoles in interface RoleLocalServiceSystemException
public int getSubtypeRolesCount(String subtype)
throws SystemException
getSubtypeRolesCount in interface RoleLocalServiceSystemException
public Role getTeamRole(long companyId,
long teamId)
throws PortalException,
SystemException
getTeamRole in interface RoleLocalServicePortalException
SystemException
public List<Role> getUserGroupGroupRoles(long userId,
long groupId)
throws SystemException
getUserGroupGroupRoles in interface RoleLocalServiceSystemException
public List<Role> getUserGroupRoles(long userId,
long groupId)
throws SystemException
getUserGroupRoles in interface RoleLocalServiceSystemException
public List<Role> getUserRelatedRoles(long userId,
List<Group> groups)
throws SystemException
getUserRelatedRoles in interface RoleLocalServiceSystemException
public List<Role> getUserRelatedRoles(long userId,
long groupId)
throws SystemException
getUserRelatedRoles in interface RoleLocalServiceSystemException
public List<Role> getUserRelatedRoles(long userId,
long[] groupIds)
throws SystemException
getUserRelatedRoles in interface RoleLocalServiceSystemException
public List<Role> getUserRoles(long userId)
throws SystemException
getUserRoles in interface RoleLocalServiceSystemException
public boolean hasUserRole(long userId,
long roleId)
throws SystemException
hasUserRole in interface RoleLocalServiceSystemException
public boolean hasUserRole(long userId,
long companyId,
String name,
boolean inherited)
throws PortalException,
SystemException
true if the user has the regular role.
hasUserRole in interface RoleLocalServicetrue if the user has the regular role
PortalException
SystemException
public boolean hasUserRoles(long userId,
long companyId,
String[] names,
boolean inherited)
throws PortalException,
SystemException
true if the user has any one of the specified
regular roles.
hasUserRoles in interface RoleLocalServicetrue if the user has the regular role
PortalException
SystemException
public List<Role> search(long companyId,
String keywords,
Integer[] types,
int start,
int end,
OrderByComparator obc)
throws SystemException
search in interface RoleLocalServiceSystemException
public List<Role> search(long companyId,
String keywords,
Integer[] types,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator obc)
throws SystemException
search in interface RoleLocalServiceSystemException
public List<Role> search(long companyId,
String name,
String description,
Integer[] types,
int start,
int end,
OrderByComparator obc)
throws SystemException
search in interface RoleLocalServiceSystemException
public List<Role> search(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator obc)
throws SystemException
search in interface RoleLocalServiceSystemException
public int searchCount(long companyId,
String keywords,
Integer[] types)
throws SystemException
searchCount in interface RoleLocalServiceSystemException
public int searchCount(long companyId,
String keywords,
Integer[] types,
LinkedHashMap<String,Object> params)
throws SystemException
searchCount in interface RoleLocalServiceSystemException
public int searchCount(long companyId,
String name,
String description,
Integer[] types)
throws SystemException
searchCount in interface RoleLocalServiceSystemException
public int searchCount(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params)
throws SystemException
searchCount in interface RoleLocalServiceSystemException
public void setUserRoles(long userId,
long[] roleIds)
throws PortalException,
SystemException
setUserRoles in interface RoleLocalServicePortalException
SystemException
public void unsetUserRoles(long userId,
long[] roleIds)
throws PortalException,
SystemException
unsetUserRoles in interface RoleLocalServicePortalException
SystemException
public Role updateRole(long roleId,
String name,
Map<Locale,String> titleMap,
String description,
String subtype)
throws PortalException,
SystemException
updateRole in interface RoleLocalServicePortalException
SystemExceptionpublic RoleLocalService getWrappedRoleLocalService()
public void setWrappedRoleLocalService(RoleLocalService roleLocalService)
|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||