Main Page | Packages | Class Hierarchy | Class List | Directories | Class Members | Related Pages

org.colimas.security.ResourcePermission Class Reference

List of all members.

Public Member Functions

 ResourcePermission (String name)
 ResourcePermission (String name, String actions)
 ResourcePermission (String name, String actions, Resource resource)
 ResourcePermission (String name, String actions, Resource resource, Subject subject)
String getActions ()
int hashCode ()
boolean equals (Object object)
boolean implies (Permission permission)
Resource getResource ()
Subject getSubject ()
PermissionCollection newPermissionCollection ()
String toString ()

Static Public Attributes

static final String OWNER_RELATIONSHIP = "OWNER"

Detailed Description

ResourcePermission.java

Function:
User permissions are stored in this class. Through I wrote READ,WRITE,EXECUTE,CREATE,DELETE,DEPLOY,CONFIRM permssions, I only use EXECUTE for controlling struts action's execution.

Author:
zhao lei
Version:
1.0
Modification History:
 SEQ DATE       ORDER DEVELOPER      DESCRIPTION
 --- ---------- ----- -------------- -----------------------------
 001 2005/12/03          zhao lei       INIT
 002 2005/12/23          zhao lei       add comment
 


Constructor & Destructor Documentation

org.colimas.security.ResourcePermission.ResourcePermission String  name  ) 
 

Constructor for ResourcePermission

Parameters:
name 

org.colimas.security.ResourcePermission.ResourcePermission String  name,
String  actions
 

Constructor for ResourcePermission

Parameters:
name 
actions 

org.colimas.security.ResourcePermission.ResourcePermission String  name,
String  actions,
Resource  resource
 

Constructor for ResourcePermission

Parameters:
name 
actions 
resource 

org.colimas.security.ResourcePermission.ResourcePermission String  name,
String  actions,
Resource  resource,
Subject  subject
 

Constructor for ResourcePermission

Parameters:
name 
actions 
resource 
subject 


Member Function Documentation

boolean org.colimas.security.ResourcePermission.equals Object  object  ) 
 

See also:
Permission.equals(Object)

String org.colimas.security.ResourcePermission.getActions  ) 
 

See also:
java.security.Permission.getActions()

Resource org.colimas.security.ResourcePermission.getResource  ) 
 

Gets the resource

Returns:
Returns a Resource

Subject org.colimas.security.ResourcePermission.getSubject  ) 
 

Gets the subject

Returns:
Returns a Subject

int org.colimas.security.ResourcePermission.hashCode  ) 
 

See also:
Permission.hashCode()

boolean org.colimas.security.ResourcePermission.implies Permission  permission  ) 
 

See also:
Permission.implies(Permission)

PermissionCollection org.colimas.security.ResourcePermission.newPermissionCollection  ) 
 

See also:
Permission.newPermissionCollection()

String org.colimas.security.ResourcePermission.toString  ) 
 

See also:
Permission.toString()


Member Data Documentation

final String org.colimas.security.ResourcePermission.OWNER_RELATIONSHIP = "OWNER" [static]
 

Deprecated:
owner, not used.


The documentation for this class was generated from the following file:
Generated on Sat Jan 14 02:04:31 2006 for Colimas by  doxygen 1.4.4