|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UserRoleService
Provide userRole-related business service.
| Method Summary | |
|---|---|
UserRole |
add(UserRole userRole)
Adds the given userRole. |
UserRole |
findByName(java.lang.String name)
Find the userRole with the given name. |
UserRole |
get(long userRoleUid)
Get the userRole with the given UID. |
java.util.Map |
getAllUserPermissionsMap()
Return the system configured permission map. |
UserRole |
getDefaultUserRole()
Return the deafalt userRole, namely, the userRole with name "USER". |
java.util.List |
getUserRoleInUseUidList()
Get the list of uids of UserRole used by existing CmUsers. |
java.util.List |
list()
Lists all userRoles stored in the database. |
UserRole |
load(long userRoleUid)
Load the userRole with the given UID. |
boolean |
nameExists(java.lang.String name)
Checks whether the given userRole name exists or not. |
boolean |
nameExists(UserRole userRole)
Check whether the given userRole's name exists or not. |
void |
remove(UserRole userRole)
Delete the userRole. |
void |
setAllUserPermissionsMap(java.util.Map allUserPermissionsMap)
Set the system configured permission map. |
void |
update(UserRole userRole)
Updates the given userRole. |
| Methods inherited from interface com.elasticpath.service.EpPersistenceService |
|---|
getObject, getPersistenceEngine, setPersistenceEngine |
| Methods inherited from interface com.elasticpath.service.EpService |
|---|
getElasticPath, setElasticPath |
| Method Detail |
|---|
UserRole add(UserRole userRole)
throws UserRoleNameExistException
userRole - the userRole to add
UserRoleNameExistException - - if userRole with the specified name already exists
UserRole findByName(java.lang.String name)
throws EpServiceException
name - the userRole name.
EpServiceException - - in case of any errors
UserRole get(long userRoleUid)
throws EpServiceException
userRoleUid - the userRole UID
EpServiceException - - in case of any errorsjava.util.Map getAllUserPermissionsMap()
UserRole getDefaultUserRole()
throws EpServiceException
EpServiceException - - in case of any errorsjava.util.List getUserRoleInUseUidList()
UserRole used by existing CmUsers.
UserRoles in use.
java.util.List list()
throws EpServiceException
EpServiceException - -
in case of any errors
UserRole load(long userRoleUid)
throws EpServiceException
userRoleUid - the userRole UID
EpServiceException - - in case of any errors
boolean nameExists(java.lang.String name)
throws EpServiceException
name - the userRole name.
EpServiceException - -
in case of any errors
boolean nameExists(UserRole userRole)
throws EpServiceException
userRole - the userRole to check
EpServiceException - - in case of any errors
void remove(UserRole userRole)
throws EpServiceException
userRole - the userRole to remove
EpServiceException - - in case of any errorsvoid setAllUserPermissionsMap(java.util.Map allUserPermissionsMap)
allUserPermissionsMap - the system configured permission map.
void update(UserRole userRole)
throws UserRoleNameExistException
userRole - the userRole to update
UserRoleNameExistException - - if userRole with the specified name already exists
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||