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

public long getPermissionId()

Getter for the permission id.

Returns:
The permission id.

setPermissionId

public void setPermissionId(long permissionId)

Setter for the permission id.

Parameters:
permissionId - The permission id.

getClassname

public String getClassname()

Getter for the permission classname.

Returns:
The permission classname.

setClassname

public void setClassname(String classname)

Setter for the permission classname.

Parameters:
classname - The permission classname.

getName

public String getName()

Getter for the permission resource name.

Returns:
The permission resource name.

setName

public void setName(String name)

Setter for the permission resource name.

Parameters:
name - The permission resource name.

getActions

public String getActions()

Getter for the permission actions.

Returns:
The permission actions.

setActions

public void setActions(String actions)

Setter for the permission actions.

Parameters:
actions - The permission actions.

getPrincipals

public Collection getPrincipals()

Getter for the permission principals.

Returns:
The permission principals.

setPrincipals

public void setPrincipals(Collection principals)

Setter for the permission principals.

Parameters:
principals - The permission principals.

getCreationDate

public Timestamp getCreationDate()

Getter for creation date.

Returns:
The creation date.

setCreationDate

public void setCreationDate(Timestamp creationDate)

Setter for the creation date.

Parameters:
creationDate - The creation date.

getModifiedDate

public Timestamp getModifiedDate()

Getter for the modified date.

Returns:
The modified date.

setModifiedDate

public void setModifiedDate(Timestamp modifiedDate)

Setter for the modified date.

Parameters:
modifiedDate - The modified date.

equals

public boolean equals(Object object)

Equals method used to appropriately compare 2 InternalPermission objects.

Parameters:
object - The object to compare with.
Returns:
The comparison result.


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