| java.lang.Object org.jasig.portal.security.provider.AuthorizationPrincipalImpl
AuthorizationPrincipalImpl | public class AuthorizationPrincipalImpl implements IAuthorizationPrincipal(Code) | | author: Dan Ellentuck version: $Revision: 34771 $ |
Method Summary | |
public boolean | canPublish() Answers if this IAuthorizationPrincipal has permission to publish. | public boolean | canRender(int channelPublishId) Answers if this IAuthorizationPrincipal has permission to render this channel. | public boolean | canSubscribe(int channelPublishId) Answers if this IAuthorizationPrincipal has permission to subscribe to this channel. | public boolean | equals(Object obj) Compares two objects for equality. | public IPermission[] | getAllPermissions() Returns the IPermissions for this IAuthorizationPrincipal , including
inherited IPermissions . | public IPermission[] | getAllPermissions(String owner, String activity, String target) Returns the IPermissions for this IAuthorizationPrincipal for the
specified owner , activity and target . | IAuthorizationService | getAuthorizationService() | public java.util.Vector | getAuthorizedChannels() Return a Vector of IChannels. | public java.lang.String | getKey() | public IPermission[] | getPermissions() Returns the IPermissions for this IAuthorizationPrincipal . | public IPermission[] | getPermissions(String owner, String activity, String target) Returns the IPermissions for this IAuthorizationPrincipal for the
specified owner , activity and target . | public String | getPrincipalString() | public java.lang.Class | getType() | public boolean | hasPermission(String owner, String activity, String target) Answers if this IAuthorizationPrincipal has permission to perform the
activity on the target . | public boolean | hasPermission(String owner, String activity, String target, IPermissionPolicy policy) Answers if this IAuthorizationPrincipal has permission to perform the
activity on the target , as evaluated by the
policy . | public int | hashCode() Generates a hash code for the receiver. | void | setAuthorizationService(IAuthorizationService newAuthorizationService) | public String | toString() Returns a String that represents the value of this object. |
AuthorizationPrincipalImpl | public AuthorizationPrincipalImpl(String newKey, Class newType)(Code) | | Constructor for ReferenceAuthorizationPrincipal.
|
canRender | public boolean canRender(int channelPublishId) throws org.jasig.portal.AuthorizationException(Code) | | Answers if this IAuthorizationPrincipal has permission to render this channel.
boolean Parameters: channelPublishId - int - the Channel publish ID exception: AuthorizationException - thrown when authorization information could not be retrieved. |
canSubscribe | public boolean canSubscribe(int channelPublishId) throws org.jasig.portal.AuthorizationException(Code) | | Answers if this IAuthorizationPrincipal has permission to subscribe to this channel.
boolean Parameters: channelPublishId - int - the Channel publish ID exception: AuthorizationException - thrown when authorization information could not be retrieved. |
equals | public boolean equals(Object obj)(Code) | | Compares two objects for equality. Returns a boolean that indicates
whether this object is equivalent to the specified object. This method
is used when an object is stored in a hashtable.
Parameters: obj - the Object to compare with true if these Objects are equal; false otherwise. See Also: java.util.Hashtable |
getAllPermissions | public IPermission[] getAllPermissions() throws AuthorizationException(Code) | | Returns the IPermissions for this IAuthorizationPrincipal , including
inherited IPermissions .
org.jasig.portal.security.IPermission[] exception: AuthorizationException - indicates authorization information could not be retrieved. |
getAllPermissions | public IPermission[] getAllPermissions(String owner, String activity, String target) throws AuthorizationException(Code) | | Returns the IPermissions for this IAuthorizationPrincipal for the
specified owner , activity and target . Inherited
IPermissions are included. Null parameters are ignored, so
getPermissions(null, null, null) should retrieve all IPermissions
for an IAuthorizationPrincipal .
org.jasig.portal.security.IPermission[] Parameters: owner - java.lang.String Parameters: activity - java.lang.String Parameters: target - java.lang.String exception: AuthorizationException - indicates authorization information could not be retrieved. |
getPermissions | public IPermission[] getPermissions(String owner, String activity, String target) throws AuthorizationException(Code) | | Returns the IPermissions for this IAuthorizationPrincipal for the
specified owner , activity and target . Null parameters
are ignored, so getPermissions(null, null, null) should retrieve all
IPermissions for an IAuthorizationPrincipal .
org.jasig.portal.security.IPermission[] Parameters: owner - java.lang.String Parameters: activity - java.lang.String Parameters: target - java.lang.String exception: AuthorizationException - indicates authorization information could not be retrieved. |
getPrincipalString | public String getPrincipalString()(Code) | | java.lang.String |
hasPermission | public boolean hasPermission(String owner, String activity, String target) throws org.jasig.portal.AuthorizationException(Code) | | Answers if this IAuthorizationPrincipal has permission to perform the
activity on the target . Params owner and
activity must be non-null. If target is null, then the
target is not checked.
boolean Parameters: owner - java.lang.String Parameters: activity - java.lang.String Parameters: target - java.lang.String exception: AuthorizationException - indicates authorization information could not be retrieved. |
hasPermission | public boolean hasPermission(String owner, String activity, String target, IPermissionPolicy policy) throws AuthorizationException(Code) | | Answers if this IAuthorizationPrincipal has permission to perform the
activity on the target , as evaluated by the
policy . Params policy , owner and
activity must be non-null.
boolean Parameters: owner - java.lang.String Parameters: activity - java.lang.String Parameters: target - java.lang.String Parameters: policy - org.jasig.portal.security.IPermissionPolicy exception: AuthorizationException - indicates authorization information could notbe retrieved. |
hashCode | public int hashCode()(Code) | | Generates a hash code for the receiver.
This method is supported primarily for
hash tables, such as those provided in java.util.
an integer hash code for the receiver See Also: java.util.Hashtable |
setAuthorizationService | void setAuthorizationService(IAuthorizationService newAuthorizationService)(Code) | | Parameters: newAuthorizationService - org.jasig.portal.security.IAuthorizationService |
toString | public String toString()(Code) | | Returns a String that represents the value of this object.
a string representation of the receiver |
|
|