com.elasticpath.domain.customer.impl
Class CustomerRoleImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.impl.AbstractValueObjectImpl
              extended by 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

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
CustomerRoleImpl()
           
 
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 com.elasticpath.domain.impl.AbstractPersistenceImpl
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, 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.customer.CustomerRole
setElasticPath
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

CustomerRoleImpl

public CustomerRoleImpl()
Method Detail

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.