|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.security.provider.PermissionImpl
public class PermissionImpl
Field Summary | |
---|---|
private java.lang.String |
m_activity
|
private java.util.Date |
m_effective
|
private java.util.Date |
m_expires
|
private java.lang.String |
m_owner
|
private java.lang.String |
m_principal
|
private java.lang.String |
m_target
|
private java.lang.String |
m_type
|
Fields inherited from interface org.jasig.portal.security.IPermission |
---|
CHANNEL_PREFIX, CHANNEL_PUBLISHER_ACTIVITY, CHANNEL_SUBSCRIBER_ACTIVITY, PERMISSION_TYPE_DENY, PERMISSION_TYPE_GRANT, PORTAL_FRAMEWORK |
Constructor Summary | |
---|---|
PermissionImpl(java.lang.String owner)
This constructor ensures that all Permission objects are created with an owner specified. |
Method Summary | |
---|---|
java.lang.String |
getActivity()
Returns the token that represents the activity associated with this IPermission . |
java.util.Date |
getEffective()
Returns the effective date that was set for this Permission. |
java.util.Date |
getExpires()
Returns the expires date that was set for this Permission. |
java.lang.String |
getOwner()
Returns the owner of this Permission |
java.lang.String |
getPrincipal()
Returns the token that represents the IAuthorizationPrincipal
associated with this IPermission . |
java.lang.String |
getTarget()
Returns the token that represents the target associated with this IPermission . |
java.lang.String |
getType()
Returns the type of permission that this is, generally GRANT or DENY |
void |
setActivity(java.lang.String activity)
Specifies the token that represents the activity associated with this IPermission . |
void |
setEffective(java.util.Date effective)
Specifies the date that this IPermission will become effective. |
void |
setExpires(java.util.Date expires)
Specifies the date that this IPermission will expire. |
void |
setPrincipal(java.lang.String newPrincipal)
Specifies the token that represents the IAuthorizationPrincipal
associated with this IPermission . |
void |
setTarget(java.lang.String target)
Specifies the token that represents the target associated with this IPermission . |
void |
setType(java.lang.String type)
Sets the IPermission type. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String m_owner
private java.lang.String m_principal
private java.lang.String m_activity
private java.lang.String m_target
private java.lang.String m_type
private java.util.Date m_effective
private java.util.Date m_expires
Constructor Detail |
---|
public PermissionImpl(java.lang.String owner)
owner
- Method Detail |
---|
public java.lang.String getActivity()
IPermission
.
getActivity
in interface IPermission
public java.util.Date getEffective()
getEffective
in interface IPermission
public java.util.Date getExpires()
getExpires
in interface IPermission
public java.lang.String getOwner()
getOwner
in interface IPermission
public java.lang.String getPrincipal()
IAuthorizationPrincipal
associated with this IPermission
.
getPrincipal
in interface IPermission
public java.lang.String getTarget()
IPermission
.
getTarget
in interface IPermission
IPermission
public java.lang.String getType()
getType
in interface IPermission
public void setActivity(java.lang.String activity)
IPermission
.
setActivity
in interface IPermission
activity
- Stringpublic void setEffective(java.util.Date effective)
IPermission
will become effective.
setEffective
in interface IPermission
effective
- java.util.Datepublic void setExpires(java.util.Date expires)
IPermission
will expire.
setExpires
in interface IPermission
expires
- java.util.Datepublic void setPrincipal(java.lang.String newPrincipal)
IAuthorizationPrincipal
associated with this IPermission
.
setPrincipal
in interface IPermission
newPrincipal
- Stringpublic void setTarget(java.lang.String target)
IPermission
.
setTarget
in interface IPermission
target
- Stringpublic void setType(java.lang.String type)
IPermission
type.
setType
in interface IPermission
type
- Stringpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |