|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.domain.impl.AbstractEpDomainImpl com.elasticpath.domain.impl.AbstractPersistenceImpl com.elasticpath.domain.impl.AbstractValueObjectImpl com.elasticpath.domain.cmuser.impl.UserPermissionImpl
public class UserPermissionImpl
The default implementation of UserPermission
.
Field Summary | |
---|---|
static long |
serialVersionUID
Serial version id. |
Constructor Summary | |
---|---|
UserPermissionImpl()
|
Method Summary | |
---|---|
java.lang.String |
getAuthority()
Gets the authority for this Permission . |
java.lang.String |
getDisplayText()
Gets the displayText for this Permission for the system default locale. |
java.lang.String |
getDisplayText(java.util.Locale locale)
Gets the displayText for this Permission of the given locale. |
java.lang.String |
getPermissionGroup()
Gets the group that this Permission is in. |
void |
init()
Initializes the UserPermission object given its authority. |
void |
setAuthority(java.lang.String authority)
Sets the authority for this Permission . |
void |
setDisplayText(java.lang.String displayText)
Sets the default displayText for this Permission . |
void |
setPermissionGroup(java.lang.String permissionGroup)
Sets the group that this Permission is in. |
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.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public UserPermissionImpl()
Method Detail |
---|
public java.lang.String getAuthority()
Permission
.
getAuthority
in interface UserPermission
getAuthority
in interface org.acegisecurity.GrantedAuthority
public java.lang.String getDisplayText()
Permission
for the system default locale.
getDisplayText
in interface UserPermission
public java.lang.String getDisplayText(java.util.Locale locale)
Permission
of the given locale. Looked into the message resources and look for displayText keyed
by name of thiss Permission
. Return the default displayText if not found.
getDisplayText
in interface UserPermission
locale
- the locale of the displayText tp return.
public java.lang.String getPermissionGroup()
Permission
is in.
getPermissionGroup
in interface UserPermission
public void init()
UserPermission
object given its authority. Call setElasticPath before initializing.
init
in interface UserPermission
public void setAuthority(java.lang.String authority) throws EpDomainException
Permission
.
setAuthority
in interface UserPermission
authority
- the identifier of the permission.
EpDomainException
- if the given authority is null or an empty string.public void setDisplayText(java.lang.String displayText)
Permission
.
setDisplayText
in interface UserPermission
displayText
- - the default displayText of the permission.public void setPermissionGroup(java.lang.String permissionGroup) throws EpDomainException
Permission
is in.
setPermissionGroup
in interface UserPermission
permissionGroup
- the identifier of the permissionGroup.
EpDomainException
- if the given permissionGroup is null or an empty string.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |