wt.access
Class AdHocAcl

java.lang.Object
  extended bywt.access.AdHocAcl
All Implemented Interfaces:
Externalizable, NetFactor, ObjectMappable, Serializable

public class AdHocAcl
extends Object
implements ObjectMappable, Externalizable

This class represents ACLs that are not derived from policy rules. AdHocAcls can be individually created and edited. They are also owned so that unrestricted changes to the ACL require that the principal performing these modification be the owner (or belong to the owner, in case it is a group).

Use the newAdHocAcl static factory method(s), not the AdHocAcl constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.

NOTE: This class is no longer used. It exists only to support readOldVersion methods for AdHocControlled objects. It will be deleted when all BLOBed objects are upgraded to the R7.0 class schema (no customers of R6.2.6 or lower).

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
          Deprecated.  
static String ENTRY_SET
          Deprecated. Label for the attribute; Set of acl entries.
private static int ENTRY_SET_UPPER_LIMIT
          Deprecated.  
private  AclEntrySet entrySet
          Deprecated.  
static long EXTERNALIZATION_VERSION_UID
          Deprecated.  
protected static long OLD_FORMAT_VERSION_UID
          Deprecated.  
static String OWNER_REF
          Deprecated. Label for the attribute; Acl's owner.
private  WTPrincipalReference ownerRef
          Deprecated.  
private static String RESOURCE
          Deprecated.  
(package private) static long serialVersionUID
          Deprecated.  
 
Constructor Summary
AdHocAcl()
          Deprecated.  
 
Method Summary
 ClassInfo getClassInfo()
          Deprecated. Returns the ClassInfo object for this class.
 String getConceptualClassname()
          Deprecated.  
 AclEntrySet getEntrySet()
          Deprecated. Gets the value of the attribute: ENTRY_SET.
 WTPrincipalReference getOwnerRef()
          Deprecated. Gets the value of the attribute: OWNER_REF.
protected  void initialize()
          Deprecated. Supports initialization, following construction of an instance.
protected  void initialize(WTPrincipalReference owner)
          Deprecated. Supports initialization, following construction of an instance.
 boolean isOwner(WTPrincipal user)
          Deprecated. 

Supported API: false
static AdHocAcl newAdHocAcl()
          Deprecated. No-arg public constructor for use by the readExternal routines.
static AdHocAcl newAdHocAcl(WTPrincipalReference owner)
          Deprecated. 

Supported API: false
 void readExternal(ObjectInput input)
          Deprecated. Reads the non-transient fields of this class from an external source.
 void readExternal(PersistentRetrieveIfc input)
          Deprecated. Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Deprecated. Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(AdHocAcl thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Deprecated. Reads the non-transient fields of this class from an external source.
 void setEntrySet(AclEntrySet a_EntrySet)
          Deprecated. Sets the value of the attribute: ENTRY_SET.
 void setOwnerRef(WTPrincipalReference a_OwnerRef)
          Deprecated. Sets the value of the attribute: OWNER_REF.
 String toString()
          Deprecated. Returns the conceptual (modeled) name for the class.
 void writeExternal(ObjectOutput output)
          Deprecated. Writes the non-transient fields of this class to an external source.
 void writeExternal(PersistentStoreIfc output)
          Deprecated. Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
Deprecated. 
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Deprecated. 

OWNER_REF

public static final String OWNER_REF
Deprecated. 
Label for the attribute; Acl's owner. Has unlimited rights over the ACL, including setting a new owner.

Supported API: false

See Also:
Constant Field Values

ownerRef

private WTPrincipalReference ownerRef
Deprecated. 

ENTRY_SET

public static final String ENTRY_SET
Deprecated. 
Label for the attribute; Set of acl entries.

Supported API: false

See Also:
Constant Field Values

ENTRY_SET_UPPER_LIMIT

private static int ENTRY_SET_UPPER_LIMIT
Deprecated. 

entrySet

private AclEntrySet entrySet
Deprecated. 

serialVersionUID

static final long serialVersionUID
Deprecated. 
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
Deprecated. 
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

AdHocAcl

public AdHocAcl()
Deprecated. 
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Deprecated. 
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Deprecated. 
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(AdHocAcl thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Deprecated. 
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Deprecated. 
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(PersistentStoreIfc output)
                   throws SQLException,
                          DatastoreException
Deprecated. 
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
writeExternal in interface ObjectMappable
Parameters:
output -
Throws:
SQLException
DatastoreException

readExternal

public void readExternal(PersistentRetrieveIfc input)
                  throws SQLException,
                         DatastoreException
Deprecated. 
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
readExternal in interface ObjectMappable
Parameters:
input -
Throws:
SQLException
DatastoreException

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Returns:
String

toString

public String toString()
Deprecated. 
Returns the conceptual (modeled) name for the class.

Supported API: false

Returns:
String

getClassInfo

public ClassInfo getClassInfo()
                       throws WTIntrospectionException
Deprecated. 
Returns the ClassInfo object for this class.

Supported API: false

Specified by:
getClassInfo in interface NetFactor
Returns:
ClassInfo
Throws:
WTIntrospectionException

getOwnerRef

public WTPrincipalReference getOwnerRef()
Deprecated. 
Gets the value of the attribute: OWNER_REF. Acl's owner. Has unlimited rights over the ACL, including setting a new owner.

Supported API: false

Returns:
WTPrincipalReference

setOwnerRef

public void setOwnerRef(WTPrincipalReference a_OwnerRef)
Deprecated. 
Sets the value of the attribute: OWNER_REF. Acl's owner. Has unlimited rights over the ACL, including setting a new owner.

Supported API: false

Parameters:
a_OwnerRef -

getEntrySet

public AclEntrySet getEntrySet()
Deprecated. 
Gets the value of the attribute: ENTRY_SET. Set of acl entries.

Supported API: false

Returns:
AclEntrySet

setEntrySet

public void setEntrySet(AclEntrySet a_EntrySet)
Deprecated. 
Sets the value of the attribute: ENTRY_SET. Set of acl entries.

Supported API: false

Parameters:
a_EntrySet -

newAdHocAcl

public static AdHocAcl newAdHocAcl(WTPrincipalReference owner)
                            throws WTException
Deprecated. 


Supported API: false

Parameters:
owner -
Returns:
AdHocAcl
Throws:
WTException

initialize

protected void initialize(WTPrincipalReference owner)
                   throws WTException
Deprecated. 
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: false

Parameters:
owner -
Throws:
WTException

newAdHocAcl

public static AdHocAcl newAdHocAcl()
                            throws WTException
Deprecated. 
No-arg public constructor for use by the readExternal routines. Doesn't set the owner or the entry set.

Supported API: false

Returns:
AdHocAcl
Throws:
WTException

initialize

protected void initialize()
                   throws WTException
Deprecated. 
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: false

Throws:
WTException

isOwner

public boolean isOwner(WTPrincipal user)
                throws WTException
Deprecated. 


Supported API: false

Parameters:
user -
Returns:
boolean
Throws:
WTException