|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 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 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 UserRoleServiceuserRole - the userRole to add
UserRoleNameExistException - - if userRole with the specified name already exists
public UserRole findByName(java.lang.String name)
throws EpServiceException
findByName in interface UserRoleServicename - the userRole name.
EpServiceException - - in case of any errors
public UserRole get(long userRoleUid)
throws EpServiceException
get in interface UserRoleServiceuserRoleUid - 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 UserRoleServiceEpServiceException - - in case of any errors
public java.lang.Object getObject(long uid)
throws EpServiceException
getObject in interface EpPersistenceServiceuid - the persisted instance uid
EpServiceException - -
in case of any errorspublic java.util.List getUserRoleInUseUidList()
UserRole used by existing CmUsers.
getUserRoleInUseUidList in interface UserRoleServiceUserRoles in use.
public java.util.List list()
throws EpServiceException
list in interface UserRoleServiceEpServiceException - -
in case of any errors
public UserRole load(long userRoleUid)
throws EpServiceException
load in interface UserRoleServiceuserRoleUid - the userRole UID
EpServiceException - - in case of any errors
public boolean nameExists(java.lang.String name)
throws EpServiceException
nameExists in interface UserRoleServicename - the userRole name.
EpServiceException - -
in case of any errors
public boolean nameExists(UserRole userRole)
throws EpServiceException
nameExists in interface UserRoleServiceuserRole - the userRole to check
EpServiceException - - in case of any errors
public void remove(UserRole userRole)
throws EpServiceException
remove in interface UserRoleServiceuserRole - the userRole to remove
EpServiceException - - in case of any errorspublic void setAllUserPermissionsMap(java.util.Map allUserPermissionsMap)
setAllUserPermissionsMap in interface UserRoleServiceallUserPermissionsMap - the system configured permission map.
public void update(UserRole userRole)
throws UserRoleNameExistException
update in interface UserRoleServiceuserRole - 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 | ||||||||