com.elasticpath.domain.customer.impl
Class CustomerRoleImpl
java.lang.Object
com.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractPersistenceImpl
com.elasticpath.domain.impl.AbstractValueObjectImpl
com.elasticpath.domain.customer.impl.CustomerRoleImpl
- All Implemented Interfaces:
- CustomerRole, EpDomain, Persistence, ValueObject, java.io.Serializable, org.acegisecurity.GrantedAuthority
public class CustomerRoleImpl
- extends AbstractValueObjectImpl
- implements CustomerRole
The default implementation of CustomerRole
.
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getAuthority()
Gets the authority for this Permission . |
void |
init()
Initializes the CustomerRole object given its authority. |
void |
setAuthority(java.lang.String authority)
Sets the authority for this Permission . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
public static final long serialVersionUID
- Serial version id.
- See Also:
- Constant Field Values
CustomerRoleImpl
public CustomerRoleImpl()
getAuthority
public java.lang.String getAuthority()
- Gets the authority for this
Permission
.
- Specified by:
getAuthority
in interface CustomerRole
- Specified by:
getAuthority
in interface org.acegisecurity.GrantedAuthority
- Returns:
- the authority as an identifier of the permission.
init
public void init()
- Initializes the
CustomerRole
object given its authority. Call setElasticPath before initializing.
- Specified by:
init
in interface CustomerRole
setAuthority
public void setAuthority(java.lang.String authority)
throws EpDomainException
- Sets the authority for this
Permission
.
- Specified by:
setAuthority
in interface CustomerRole
- Parameters:
authority
- the identifier of the permission.
- Throws:
EpDomainException
- if the given authority is null or an empty string.