org.apache.jetspeed.security.om
Interface InternalPermission

All Superinterfaces:
Cloneable, Serializable

public interface InternalPermission
extends Serializable, Cloneable

Interface representing a policy permission. This will be used by the org.apache.jetspeed.security.impl.RdbmsPolicy to retrieve a permission policy according to JAAS where permission are used in JAAS:

 grant [SignedBy "signer_names"] [, CodeBase "URL"]
             [, InternalPrincipal [principal_class_name] "principal_name"]
             [, InternalPrincipal [principal_class_name] "principal_name"] ... 
       {
                  permission permission_class_name [ "target_name" ] 
                                                   [, "action"] [, SignedBy "signer_names"];
                  permission ...
       };
 
 

Author:
David Le Strat

Method Summary
 boolean equals(Object object)
          Equals method used to appropriately compare 2 InternalPermission objects.
 String getActions()
          Getter for the permission actions.
 String getClassname()
          Getter for the permission classname.
 Timestamp getCreationDate()
          Getter for creation date.
 Timestamp getModifiedDate()
          Getter for the modified date.
 String getName()
          Getter for the permission resource name.
 long getPermissionId()
          Getter for the permission id.
 Collection getPrincipals()
          Getter for the permission principals.
 void setActions(String actions)
          Setter for the permission actions.
 void setClassname(String classname)
          Setter for the permission classname.
 void setCreationDate(Timestamp creationDate)
          Setter for the creation date.
 void setModifiedDate(Timestamp modifiedDate)
          Setter for the modified date.
 void setName(String name)
          Setter for the permission resource name.
 void setPermissionId(long permissionId)
          Setter for the permission id.
 void setPrincipals(Collection principals)
          Setter for the permission principals.
 

Method Detail

getPermissionId

long getPermissionId()

Getter for the permission id.

Returns:
The permission id.

setPermissionId

void setPermissionId(long permissionId)

Setter for the permission id.

Parameters:
permissionId - The permission id.

getClassname

String getClassname()

Getter for the permission classname.

Returns:
The permission classname.

setClassname

void setClassname(String classname)

Setter for the permission classname.

Parameters:
classname - The permission classname.

getName

String getName()

Getter for the permission resource name.

Returns:
The permission resource name.

setName

void setName(String name)

Setter for the permission resource name.

Parameters:
name - The permission resource name.

getActions

String getActions()

Getter for the permission actions.

Returns:
The permission actions.

setActions

void setActions(String actions)

Setter for the permission actions.

Parameters:
actions - The permission actions.

getPrincipals

Collection getPrincipals()

Getter for the permission principals.

Returns:
The permission principals.

setPrincipals

void setPrincipals(Collection principals)

Setter for the permission principals.

Parameters:
principals - The permission principals.

getCreationDate

Timestamp getCreationDate()

Getter for creation date.

Returns:
The creation date.

setCreationDate

void setCreationDate(Timestamp creationDate)

Setter for the creation date.

Parameters:
creationDate - The creation date.

getModifiedDate

Timestamp getModifiedDate()

Getter for the modified date.

Returns:
The modified date.

setModifiedDate

void setModifiedDate(Timestamp modifiedDate)

Setter for the modified date.

Parameters:
modifiedDate - The modified date.

equals

boolean equals(Object object)

Equals method used to appropriately compare 2 InternalPermission objects.

Overrides:
equals in class Object
Parameters:
object - The object to compare with.
Returns:
The comparison result.


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.