|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.service.impl.AbstractEpServiceImpl com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl com.elasticpath.service.cmuser.impl.UserRoleServiceImpl
public class UserRoleServiceImpl
Test UserRoleServiceImpl
.
Constructor Summary | |
---|---|
UserRoleServiceImpl()
|
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.lang.Object |
getObject(long uid)
Generic load method for all persistable domain models. |
java.util.List |
getUserRoleInUseUidList()
Get the list of uids of UserRole used by existing CmUser s. |
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 class com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl |
---|
getPersistenceEngine, setPersistenceEngine |
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.service.EpPersistenceService |
---|
getPersistenceEngine, setPersistenceEngine |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Constructor Detail |
---|
public UserRoleServiceImpl()
Method Detail |
---|
public UserRole add(UserRole userRole) throws UserRoleNameExistException
add
in interface UserRoleService
userRole
- the userRole to add
UserRoleNameExistException
- - if userRole with the specified name already existspublic UserRole findByName(java.lang.String name) throws EpServiceException
findByName
in interface UserRoleService
name
- the userRole name.
EpServiceException
- - in case of any errorspublic UserRole get(long userRoleUid) throws EpServiceException
get
in interface UserRoleService
userRoleUid
- the userRole UID
EpServiceException
- - in case of any errorspublic java.util.Map getAllUserPermissionsMap()
getAllUserPermissionsMap
in interface UserRoleService
public UserRole getDefaultUserRole() throws EpServiceException
getDefaultUserRole
in interface UserRoleService
EpServiceException
- - in case of any errorspublic java.lang.Object getObject(long uid) throws EpServiceException
getObject
in interface EpPersistenceService
uid
- the persisted instance uid
EpServiceException
- -
in case of any errorspublic java.util.List getUserRoleInUseUidList()
UserRole
used by existing CmUser
s.
getUserRoleInUseUidList
in interface UserRoleService
UserRole
s in use.public java.util.List list() throws EpServiceException
list
in interface UserRoleService
EpServiceException
- -
in case of any errorspublic UserRole load(long userRoleUid) throws EpServiceException
load
in interface UserRoleService
userRoleUid
- the userRole UID
EpServiceException
- - in case of any errorspublic boolean nameExists(java.lang.String name) throws EpServiceException
nameExists
in interface UserRoleService
name
- the userRole name.
EpServiceException
- -
in case of any errorspublic boolean nameExists(UserRole userRole) throws EpServiceException
nameExists
in interface UserRoleService
userRole
- the userRole to check
EpServiceException
- - in case of any errorspublic void remove(UserRole userRole) throws EpServiceException
remove
in interface UserRoleService
userRole
- the userRole to remove
EpServiceException
- - in case of any errorspublic void setAllUserPermissionsMap(java.util.Map allUserPermissionsMap)
setAllUserPermissionsMap
in interface UserRoleService
allUserPermissionsMap
- the system configured permission map.public void update(UserRole userRole) throws UserRoleNameExistException
update
in interface UserRoleService
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 |