|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractPersistenceImpl
com.elasticpath.domain.impl.AbstractEntityImpl
com.elasticpath.domain.cmuser.impl.UserRoleImpl
public class UserRoleImpl
The default implementation of UserRole.
| Field Summary | |
|---|---|
static long |
serialVersionUID
Serial version id. |
| Fields inherited from interface com.elasticpath.domain.cmuser.UserRole |
|---|
DEFAULT_USERROLE, ROLE_PROFIX, SUPERUSER |
| Constructor Summary | |
|---|---|
UserRoleImpl()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAuthority()
Gets the authority for this UserRole. |
java.lang.String |
getDescription()
Gets the description of this UserRole. |
java.lang.String |
getName()
Gets the name of this UserRole. |
java.util.Set |
getUserPermissions()
Gets the Permissions associated with this Role. |
boolean |
isDefaultUserRole()
Return true if this is the default USER role. |
boolean |
isSuperUserRole()
Return true if this is the SUPERUSER role. |
void |
setDefaultValues()
Set default values for those fields need default values. |
void |
setDescription(java.lang.String description)
Sets the description of this UserRole. |
void |
setName(java.lang.String name)
Sets the name of this UserRole. |
void |
setUserPermissions(java.util.Set userPermissions)
Sets the Permissions associated with this UserRole. |
| Methods inherited from class com.elasticpath.domain.impl.AbstractEntityImpl |
|---|
convertAttributeGroupAttributes, getGuid, setGuid |
| Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
| Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
|---|
getElasticPath, setElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.elasticpath.domain.Entity |
|---|
getGuid, setGuid |
| Methods inherited from interface com.elasticpath.domain.Persistence |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
| Methods inherited from interface com.elasticpath.domain.EpDomain |
|---|
getElasticPath, setElasticPath |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public UserRoleImpl()
| Method Detail |
|---|
public java.lang.String getAuthority()
UserRole.
getAuthority in interface org.acegisecurity.GrantedAuthoritypublic java.lang.String getDescription()
UserRole.
getDescription in interface UserRolepublic java.lang.String getName()
UserRole.
getName in interface UserRolepublic java.util.Set getUserPermissions()
Permissions associated with this Role.
getUserPermissions in interface UserRolepublic boolean isDefaultUserRole()
isDefaultUserRole in interface UserRolepublic boolean isSuperUserRole()
isSuperUserRole in interface UserRolepublic void setDefaultValues()
setDefaultValues in interface PersistencesetDefaultValues in class AbstractEntityImplpublic void setDescription(java.lang.String description)
UserRole.
setDescription in interface UserRoledescription - the userRole description.
public void setName(java.lang.String name)
throws EpDomainException
UserRole.
setName in interface UserRolename - the userRole name.
EpDomainException - if the given name is null or an empty string.public void setUserPermissions(java.util.Set userPermissions)
Permissions associated with this UserRole.
setUserPermissions in interface UserRoleuserPermissions - the new set of userPermissions.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||