|
|||||||||
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 Permission s 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 Permission s 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.GrantedAuthority
public java.lang.String getDescription()
UserRole
.
getDescription
in interface UserRole
public java.lang.String getName()
UserRole
.
getName
in interface UserRole
public java.util.Set getUserPermissions()
Permission
s associated with this Role
.
getUserPermissions
in interface UserRole
public boolean isDefaultUserRole()
isDefaultUserRole
in interface UserRole
public boolean isSuperUserRole()
isSuperUserRole
in interface UserRole
public void setDefaultValues()
setDefaultValues
in interface Persistence
setDefaultValues
in class AbstractEntityImpl
public void setDescription(java.lang.String description)
UserRole
.
setDescription
in interface UserRole
description
- the userRole description.public void setName(java.lang.String name) throws EpDomainException
UserRole
.
setName
in interface UserRole
name
- the userRole name.
EpDomainException
- if the given name is null or an empty string.public void setUserPermissions(java.util.Set userPermissions)
Permission
s associated with this UserRole
.
setUserPermissions
in interface UserRole
userPermissions
- the new set of userPermissions.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |