com.arsdigita.kernel.permissions
Class PermissionDescriptor

java.lang.Object
  extended bycom.arsdigita.kernel.permissions.PermissionDescriptor
Direct Known Subclasses:
UniversalPermissionDescriptor

public class PermissionDescriptor
extends Object

Describes a privilege on an object that is granted to a party. A PermissionDescriptor is used with the PermissionService to check, grant, and revoke permissions.

Version:
1.0
Author:
Oumi Mehrotra
See Also:
PrivilegeDescriptor, PermissionService

Field Summary
static String versionId
           
 
Constructor Summary
PermissionDescriptor(PrivilegeDescriptor privilege, ACSObject acsObject, Party party)
          Creates a new PermissionDescriptor object for the specified party, granting the specified privilege on the specified ACS object.
PermissionDescriptor(PrivilegeDescriptor privilege, OID acsObjectOID, OID partyOID)
          Creates a new PermissionDescriptor object for the party with the given OID, that grants the specified privilege on the ACS object with the given OID.
 
Method Summary
 boolean equals(Object o)
           
 OID getACSObjectOID()
          Returns the OID of the ACSObject that the Party has the PrivilegeDescriptor on.
 OID getPartyOID()
          Returns the OID of the Party that is the grantee of the PrivilegeDescriptor associated with this PermissionDescriptor.
 PrivilegeDescriptor getPrivilegeDescriptor()
          Returns the OID of the PrivilegeDescriptor associated with this PermissionDescriptor.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

PermissionDescriptor

public PermissionDescriptor(PrivilegeDescriptor privilege,
                            ACSObject acsObject,
                            Party party)
Creates a new PermissionDescriptor object for the specified party, granting the specified privilege on the specified ACS object.

Parameters:
privilege - the privilege being granted
acsObject - the ACS object on which the privilege is to be granted
party - the party that will be granted this permission
See Also:
ACSObject, Party, PrivilegeDescriptor

PermissionDescriptor

public PermissionDescriptor(PrivilegeDescriptor privilege,
                            OID acsObjectOID,
                            OID partyOID)
Creates a new PermissionDescriptor object for the party with the given OID, that grants the specified privilege on the ACS object with the given OID.

Parameters:
privilege - the privilege to be granted
acsObjectOID - the OID of the ACS object on which the privilege is to be granted
partyOID - the OID of the party that will be granted this permission
See Also:
ACSObject, Party, PrivilegeDescriptor, OID
Method Detail

getPartyOID

public OID getPartyOID()
Returns the OID of the Party that is the grantee of the PrivilegeDescriptor associated with this PermissionDescriptor.

Returns:
The OID of the Party that is the grantee of the PrivilegeDescriptor.
See Also:
Party, OID

getACSObjectOID

public OID getACSObjectOID()
Returns the OID of the ACSObject that the Party has the PrivilegeDescriptor on.

Returns:
The OID of the ACSObject that the Party has the PrivilegeDescriptor on.
See Also:
ACSObject, OID

getPrivilegeDescriptor

public PrivilegeDescriptor getPrivilegeDescriptor()
Returns the OID of the PrivilegeDescriptor associated with this PermissionDescriptor.

Returns:
The OID of the Privilge associated with this PermissionDescriptor.
See Also:
PrivilegeDescriptor, OID

equals

public boolean equals(Object o)

hashCode

public int hashCode()


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC