|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.security.provider.AuthorizationPrincipalImpl
public class AuthorizationPrincipalImpl
| Constructor Summary | |
|---|---|
AuthorizationPrincipalImpl(String newKey,
Class newType)
Constructor for ReferenceAuthorizationPrincipal. |
|
AuthorizationPrincipalImpl(String newKey,
Class newType,
IAuthorizationService authService)
Constructor for ReferenceAuthorizationPrincipal. |
|
| Method Summary | |
|---|---|
boolean |
canConfigure(int channelPublishId)
Answers if this IAuthorizationPrincipal has permission to use the CONFIG PortletMode on the specified channel |
boolean |
canManage(ChannelLifecycleState state,
String categoryId)
Answers if this IAuthorizationPrincipal has permission to publish. |
boolean |
canManage(int channelPublishId)
Answers if this IAuthorizationPrincipal has permission to manage this channel. |
boolean |
canRender(int channelPublishId)
Answers if this IAuthorizationPrincipal has permission to render this channel. |
boolean |
canSubscribe(int channelPublishId)
Answers if this IAuthorizationPrincipal has permission to subscribe to this channel. |
boolean |
equals(Object obj)
Compares two objects for equality. |
IPermission[] |
getAllPermissions()
Returns the IPermissions for this IAuthorizationPrincipal, including
inherited IPermissions. |
IPermission[] |
getAllPermissions(String owner,
String activity,
String target)
Returns the IPermissions for this IAuthorizationPrincipal for the
specified owner, activity and target. |
Vector |
getAuthorizedChannels()
Return a Vector of IChannels. |
String |
getKey()
Returns the key of the underlying entity. |
IPermission[] |
getPermissions()
Returns the IPermissions for this IAuthorizationPrincipal. |
IPermission[] |
getPermissions(String owner,
String activity,
String target)
Returns the IPermissions for this IAuthorizationPrincipal for the
specified owner, activity and target. |
String |
getPrincipalString()
|
Class |
getType()
Return the Type of the underlying entity. |
int |
hashCode()
Generates a hash code for the receiver. |
boolean |
hasPermission(String owner,
String activity,
String target)
Answers if this IAuthorizationPrincipal has permission to perform the
activity on the target. |
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. |
String |
toString()
Returns a String that represents the value of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AuthorizationPrincipalImpl(String newKey,
Class newType)
public AuthorizationPrincipalImpl(String newKey,
Class newType,
IAuthorizationService authService)
| Method Detail |
|---|
public boolean canManage(int channelPublishId)
throws AuthorizationException
IAuthorizationPrincipal has permission to manage this channel.
canManage in interface IAuthorizationPrincipalchannelPublishId - int - the Channel publish ID
AuthorizationException - thrown when authorization information could not be retrieved.
public boolean canManage(ChannelLifecycleState state,
String categoryId)
throws AuthorizationException
IAuthorizationPrincipal has permission to publish.
canManage in interface IAuthorizationPrincipalAuthorizationException - thrown when authorization information could not be retrieved.
public boolean canConfigure(int channelPublishId)
throws AuthorizationException
IAuthorizationPrincipalIAuthorizationPrincipal has permission to use the CONFIG PortletMode on the specified channel
canConfigure in interface IAuthorizationPrincipalAuthorizationException
public boolean canRender(int channelPublishId)
throws AuthorizationException
IAuthorizationPrincipal has permission to render this channel.
canRender in interface IAuthorizationPrincipalchannelPublishId - int - the Channel publish ID
AuthorizationException - thrown when authorization information could not be retrieved.
public boolean canSubscribe(int channelPublishId)
throws AuthorizationException
IAuthorizationPrincipal has permission to subscribe to this channel.
canSubscribe in interface IAuthorizationPrincipalchannelPublishId - int - the Channel publish ID
AuthorizationException - thrown when authorization information could not be retrieved.public boolean equals(Object obj)
equals in class Objectobj - the Object to compare with
Hashtable
public IPermission[] getAllPermissions()
throws AuthorizationException
IPermissions for this IAuthorizationPrincipal, including
inherited IPermissions.
getAllPermissions in interface IAuthorizationPrincipalAuthorizationException - indicates authorization information could not
be retrieved.
public IPermission[] getAllPermissions(String owner,
String activity,
String target)
throws AuthorizationException
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.
getAllPermissions in interface IAuthorizationPrincipalowner - java.lang.Stringactivity - java.lang.Stringtarget - java.lang.String
AuthorizationException - indicates authorization information could not
be retrieved.
public Vector getAuthorizedChannels()
throws AuthorizationException
getAuthorizedChannels in interface IAuthorizationPrincipaljava.util.Vector of IChannels
AuthorizationException - indicates authorization information could not be retrieved.public String getKey()
IAuthorizationPrincipal
getKey in interface IAuthorizationPrincipal
public IPermission[] getPermissions()
throws AuthorizationException
IPermissions for this IAuthorizationPrincipal.
getPermissions in interface IAuthorizationPrincipalAuthorizationException - indicates authorization information could not
be retrieved.
public IPermission[] getPermissions(String owner,
String activity,
String target)
throws AuthorizationException
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.
getPermissions in interface IAuthorizationPrincipalowner - java.lang.Stringactivity - java.lang.Stringtarget - java.lang.String
AuthorizationException - indicates authorization information could not
be retrieved.public String getPrincipalString()
getPrincipalString in interface IAuthorizationPrincipalpublic Class getType()
IAuthorizationPrincipal
getType in interface IAuthorizationPrincipalpublic int hashCode()
hashCode in class ObjectHashtable
public boolean hasPermission(String owner,
String activity,
String target)
throws AuthorizationException
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.
hasPermission in interface IAuthorizationPrincipalowner - java.lang.Stringactivity - java.lang.Stringtarget - java.lang.String
AuthorizationException - indicates authorization information could not
be retrieved.public String toString()
toString in class Object
public boolean hasPermission(String owner,
String activity,
String target,
IPermissionPolicy policy)
throws AuthorizationException
IAuthorizationPrincipal has permission to perform the
activity on the target, as evaluated by the
policy. Params policy, owner and
activity must be non-null.
hasPermission in interface IAuthorizationPrincipalowner - java.lang.Stringactivity - java.lang.Stringtarget - java.lang.Stringpolicy - org.jasig.portal.security.IPermissionPolicy
AuthorizationException - indicates authorization information could not
be retrieved.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||