com.elasticpath.domain.customer
Interface CustomerRole

All Superinterfaces:
EpDomain, org.acegisecurity.GrantedAuthority, Persistence, java.io.Serializable, ValueObject
All Known Implementing Classes:
CustomerRoleImpl

public interface CustomerRole
extends org.acegisecurity.GrantedAuthority, ValueObject

CustomerRole represents a customer's role.


Method Summary
 java.lang.String getAuthority()
          Gets the authority for this CustomerRole.
 void init()
          Initializes the CustomerRole object given its authority.
 void setAuthority(java.lang.String authority)
          Sets the authority for this CustomerRole.
 void setElasticPath(ElasticPath elasticpath)
          Inject the ElasticPath singleton.
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath
 

Method Detail

getAuthority

java.lang.String getAuthority()
Gets the authority for this CustomerRole.

Specified by:
getAuthority in interface org.acegisecurity.GrantedAuthority
Returns:
the authority as an identifier of the customer's role.

init

void init()
Initializes the CustomerRole object given its authority. Call setElasticPath before initializing.


setAuthority

void setAuthority(java.lang.String authority)
Sets the authority for this CustomerRole.

Parameters:
authority - the identifier of the customer's role.

setElasticPath

void setElasticPath(ElasticPath elasticpath)
Inject the ElasticPath singleton.

Specified by:
setElasticPath in interface EpDomain
Parameters:
elasticpath - the ElasticPath singleton.