Oracle® Collaboration Suite Workspaces API Reference
10g Release 1 (10.1.2)

B25479-01


oracle.workspaces.authorization
Class CwPermission

java.lang.Object
  extended byCwAbstractGrantable
      extended byoracle.workspaces.authorization.CwPermission


public class CwPermission
extends CwAbstractGrantable

The class to represent a permission in the CW System on any CW object.

See Also:
Serialized Form

Constructor Summary
CwPermission(CwPermissionType permissionType, CwUid objectUID)
Construct a CwPermission object.

Method Summary
boolean implies(CwPermission permission)
Check if this grantable implies the specified permission
boolean isReadPermission()

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

CwPermission

public CwPermission(CwPermissionType permissionType,
                    CwUid objectUID)
             throws CwException
Construct a CwPermission object. TODO: better make it protected since the caller does not have a clue what are the allowed mapping
Throws:
CwException - if the mapping between the two parameters is not allowed

Method Detail

implies

public boolean implies(CwPermission permission)
                throws CwException
Check if this grantable implies the specified permission
Returns:
true if the permission is implied; false otherwise
Throws:
CwException

isReadPermission

public boolean isReadPermission()
                         throws CwException
Throws:
CwException

Copyright © 2001, 2005, Oracle. All rights reserved.