wt.inf.sharing
Class SharedContainerMap

java.lang.Object
  extended bywt.fc.WTObject
      extended bywt.fc.Item
          extended bywt.inf.sharing.SharedContainerMap
All Implemented Interfaces:
AccessControlled, AccessControlList, AdHocControlled, DisplayIdentification, DomainAdministered, Externalizable, NetFactor, ObjectMappable, Persistable, RecentlyVisited, Serializable, WTContained

public class SharedContainerMap
extends Item
implements AdHocControlled, WTContained, Externalizable

Records which objects are shared by which containers. Basically it contains references to the shared object and the sharing ("target") container. In case the shared object is foldered, also contains a reference to the folder the shared object is placed in the target container. A SharedContainerMap object is also called a "sharing."

Each sharing holds also additional attributes that helps querying and other operations.

Use the newSharedContainerMap static factory method(s), not the SharedContainerMap 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.



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static int COLLECTIVE
          

Supported API: false
static String CONTAINER
          Label for the attribute.
private  WTContainerRef containerReference
           
static String CREATOR_REF
          Label for the attribute; Reference to the user who created the sharing.
private  WTPrincipalReference creatorRef
           
private  boolean enabled
           
static String ENABLED
          Label for the attribute; Determines if the sharing is active.
private  AclEntrySet entrySet
           
static long EXTERNALIZATION_VERSION_UID
           
static int FOLDER
          

Supported API: false
static String ITERATION_ID
          Label for the attribute; Attribute containing the IterationIdentifier for the first iteration shared, in case the shared object is Iterated.
private  IterationIdentifier iterationId
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
static String SHARE_KEY
          Label for the attribute; Identification of the sharing.
static String SHARE_TYPE
          Label for the attribute.
static String SHARED_OBJECT_REF
          Label for the attribute; Reference to the shared object.
static String SHARED_VERSION_REF
          Label for the attribute.
private  ObjectReference sharedObjectRef
           
private  VersionReference sharedVersionRef
           
private  long shareKey
           
private  int shareType
           
static int SINGLE
          

Supported API: false
static String SOURCE_CONTAINER_REF
          Label for the attribute; Reference to the container that ows the shared object.
private  WTContainerRef sourceContainerRef
           
static int STRUCTURE
          

Supported API: false
static String TARGET_CONTAINER_REF
          Label for the attribute; Reference to the container that is sharing the object.
static String TARGET_FOLDER_REF
          Label for the attribute; Folder in the target container where the shared object is located.
private  WTContainerRef targetContainerRef
           
private  ObjectReference targetFolderRef
           
 
Fields inherited from class wt.fc.Item
VERSION_40_UID, VERSION_51_UID
 
Fields inherited from class wt.fc.WTObject
CREATE_TIMESTAMP, MODIFY_TIMESTAMP
 
Fields inherited from interface wt.access.AdHocControlled
ENTRY_SET
 
Fields inherited from interface wt.fc.Persistable
IDENTITY, PERSIST_INFO, TYPE
 
Fields inherited from interface wt.inf.container.WTContained
CONTAINER_ID, CONTAINER_NAME, CONTAINER_REFERENCE
 
Fields inherited from interface wt.admin.DomainAdministered
DOMAIN_REF, INHERITED_DOMAIN
 
Fields inherited from interface wt.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE
 
Constructor Summary
SharedContainerMap()
           
 
Method Summary
private  void containerReferenceValidate(WTContainerRef a_ContainerReference)
           
 SharedContainerMap copy(Persistable object)
          Creates a non persistent copy of the object referencing the Persistable object passed as argument in case it is not null.
 boolean equals(Object obj)
          Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifiers.
 boolean equals(SharedContainerMap other)
          

Supported API: false
 String getConceptualClassname()
          Deprecated.  
 WTContainer getContainer()
          Gets the object for the association that plays role: CONTAINER.
 String getContainerName()
          Gets the value of the attribute: CONTAINER_NAME.
 WTContainerRef getContainerReference()
          Gets the value of the attribute: CONTAINER_REFERENCE.
 WTPrincipalReference getCreatorRef()
          Gets the value of the attribute: CREATOR_REF.
 AclEntrySet getEntrySet()
          Gets the value of the attribute: ENTRY_SET.
private static long getId(Object object)
          Returns object's id.
 IterationIdentifier getIterationId()
          Gets the value of the attribute: ITERATION_ID.
static ObjectIdentifier getOid(Object object)
          Returns object's associated oid.
static String getOidString(Object obj)
           
 Persistable getShared()
          Returns the target object.
 ObjectReference getSharedObjectRef()
          Gets the value of the attribute: SHARED_OBJECT_REF.
 VersionReference getSharedVersionRef()
          Gets the value of the attribute: SHARED_VERSION_REF.
 long getShareKey()
          Gets the value of the attribute: SHARE_KEY.
 int getShareType()
          Gets the value of the attribute: SHARE_TYPE.
 WTContainerRef getSourceContainerRef()
          Gets the value of the attribute: SOURCE_CONTAINER_REF.
 Persistable getStructureHandle()
          Returns the handle of the structure for the map.
 WTContainerRef getTargetContainerRef()
          Gets the value of the attribute: TARGET_CONTAINER_REF.
 ObjectReference getTargetFolderRef()
          Gets the value of the attribute: TARGET_FOLDER_REF.
 int hashCode()
          Returns a hash code for this object based upon its ObjectIdentifier.
protected  void initialize()
          Sets the default container and domain.
 boolean isEnabled()
          Gets the value of the attribute: ENABLED.
private  boolean isVersion()
           
 boolean isVersionShare()
          Determines whether the share map corresponds to a version share.
static SharedContainerMap newSharedContainerMap()
          

Supported API: false
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
 void readExternal(PersistentRetrieveIfc input)
          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)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(SharedContainerMap thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
private  boolean same(Object obj1, Object obj2)
           
private  boolean sameEntrySet(AclEntrySet set1, AclEntrySet set2)
           
private  boolean sameIterId(IterationIdentifier iter_id1, IterationIdentifier iter_id2)
           
private  boolean sameReference(ObjectReference ref1, ObjectReference ref2)
           
 void setContainer(WTContainer a_Container)
          Sets the object for the association that plays role: CONTAINER.
 void setContainerReference(WTContainerRef a_ContainerReference)
          Sets the value of the attribute: CONTAINER_REFERENCE.
 void setCreatorRef(WTPrincipalReference a_CreatorRef)
          Sets the value of the attribute: CREATOR_REF.
 void setEnabled(boolean a_Enabled)
          Sets the value of the attribute: ENABLED.
 void setEntrySet(AclEntrySet a_EntrySet)
          Sets the value of the attribute: ENTRY_SET.
 void setIterationId(IterationIdentifier a_IterationId)
          Sets the value of the attribute: ITERATION_ID.
 void setSharedObjectRef(ObjectReference a_SharedObjectRef)
          Sets the value of the attribute: SHARED_OBJECT_REF.
 void setSharedVersionRef(VersionReference a_SharedVersionRef)
          Sets the value of the attribute: SHARED_VERSION_REF.
 void setShareKey(long a_ShareKey)
          Sets the value of the attribute: SHARE_KEY.
 void setShareType(int a_ShareType)
          Sets the value of the attribute: SHARE_TYPE.
 void setSourceContainerRef(WTContainerRef a_SourceContainerRef)
          Sets the value of the attribute: SOURCE_CONTAINER_REF.
 void setTargetContainerRef(WTContainerRef a_TargetContainerRef)
          Sets the value of the attribute: TARGET_CONTAINER_REF.
 void setTargetFolderRef(ObjectReference a_TargetFolderRef)
          Sets the value of the attribute: TARGET_FOLDER_REF.
 String toString()
          Creates and returns String representation of the map.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 void writeExternal(PersistentStoreIfc output)
          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 wt.fc.Item
getDomainRef, isInheritedDomain, readVersion, setDomainRef, setInheritedDomain
 
Methods inherited from class wt.fc.WTObject
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wt.fc.NetFactor
getClassInfo
 
Methods inherited from interface wt.fc.Persistable
checkAttributes, getIdentity, getPersistInfo, getType, setPersistInfo
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

SHARED_OBJECT_REF

public static final String SHARED_OBJECT_REF
Label for the attribute; Reference to the shared object. It may be an object or a version reference.

Supported API: false

See Also:
WTReference, ObjectReference, VersionReference, Constant Field Values

sharedObjectRef

private ObjectReference sharedObjectRef

SHARED_VERSION_REF

public static final String SHARED_VERSION_REF
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

sharedVersionRef

private VersionReference sharedVersionRef

ITERATION_ID

public static final String ITERATION_ID
Label for the attribute; Attribute containing the IterationIdentifier for the first iteration shared, in case the shared object is Iterated. If the object is not iterated, this attribute is null.

Supported API: false

See Also:
Constant Field Values

iterationId

private IterationIdentifier iterationId

TARGET_CONTAINER_REF

public static final String TARGET_CONTAINER_REF
Label for the attribute; Reference to the container that is sharing the object.

Supported API: false

See Also:
Constant Field Values

targetContainerRef

private WTContainerRef targetContainerRef

SOURCE_CONTAINER_REF

public static final String SOURCE_CONTAINER_REF
Label for the attribute; Reference to the container that ows the shared object.

Supported API: false

See Also:
Constant Field Values

sourceContainerRef

private WTContainerRef sourceContainerRef

TARGET_FOLDER_REF

public static final String TARGET_FOLDER_REF
Label for the attribute; Folder in the target container where the shared object is located. Null if the shared object is not foldered.

Supported API: false

See Also:
Constant Field Values

targetFolderRef

private ObjectReference targetFolderRef

CREATOR_REF

public static final String CREATOR_REF
Label for the attribute; Reference to the user who created the sharing.

Supported API: false

See Also:
Constant Field Values

creatorRef

private WTPrincipalReference creatorRef

ENABLED

public static final String ENABLED
Label for the attribute; Determines if the sharing is active. It is set to 'true' is active or 'false' otherwise. This attribute is used for temporary inactivation of the sharing. The initial value is 'true'.

Supported API: false

See Also:
Constant Field Values

enabled

private boolean enabled

SHARE_KEY

public static final String SHARE_KEY
Label for the attribute; Identification of the sharing. Used to identify the sharing as a member of a "shared object collection."

Shared object collections can result from sharing a complex object like a folder or a part or through multiple select. In these cases it might be desirable to cancel the share to all objects of the share. The information about the set is held in the key attribute.

Note: the shared object key is not enough to characterize the collective share operation but the pair is.

This attribute is modeled as a String so not to constrain what can be stored in it. For cases where it is possible to identify a single object to represent the collection (such as a folder), a possibility is to use a stringfied representation of the object's reference.

Supported API: false

See Also:
Constant Field Values

shareKey

private long shareKey

SHARE_TYPE

public static final String SHARE_TYPE
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

shareType

private int shareType

SINGLE

public static final int SINGLE


Supported API: false

See Also:
Constant Field Values

COLLECTIVE

public static final int COLLECTIVE


Supported API: false

See Also:
Constant Field Values

FOLDER

public static final int FOLDER


Supported API: false

See Also:
Constant Field Values

STRUCTURE

public static final int STRUCTURE


Supported API: false

See Also:
Constant Field Values

entrySet

private AclEntrySet entrySet

CONTAINER

public static final String CONTAINER
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

containerReference

private WTContainerRef containerReference

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

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

SharedContainerMap

public SharedContainerMap()
Method Detail

writeExternal

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

Supported API: false

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

readExternal

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

Supported API: false

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

readVersion

protected boolean readVersion(SharedContainerMap thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
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
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
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
Overrides:
writeExternal in class Item
Parameters:
output -
Throws:
SQLException
DatastoreException

readExternal

public void readExternal(PersistentRetrieveIfc input)
                  throws SQLException,
                         DatastoreException
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
Overrides:
readExternal in class Item
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

getSharedObjectRef

public ObjectReference getSharedObjectRef()
Gets the value of the attribute: SHARED_OBJECT_REF. Reference to the shared object. It may be an object or a version reference.

Supported API: false

Returns:
ObjectReference
See Also:
WTReference, ObjectReference, VersionReference

setSharedObjectRef

public void setSharedObjectRef(ObjectReference a_SharedObjectRef)
Sets the value of the attribute: SHARED_OBJECT_REF. Reference to the shared object. It may be an object or a version reference.

Supported API: false

Parameters:
a_SharedObjectRef -
See Also:
WTReference, ObjectReference, VersionReference

getSharedVersionRef

public VersionReference getSharedVersionRef()
Gets the value of the attribute: SHARED_VERSION_REF.

Supported API: false

Returns:
VersionReference

setSharedVersionRef

public void setSharedVersionRef(VersionReference a_SharedVersionRef)
Sets the value of the attribute: SHARED_VERSION_REF.

Supported API: false

Parameters:
a_SharedVersionRef -

getIterationId

public IterationIdentifier getIterationId()
Gets the value of the attribute: ITERATION_ID. Attribute containing the IterationIdentifier for the first iteration shared, in case the shared object is Iterated. If the object is not iterated, this attribute is null.

Supported API: false

Returns:
IterationIdentifier

setIterationId

public void setIterationId(IterationIdentifier a_IterationId)
Sets the value of the attribute: ITERATION_ID. Attribute containing the IterationIdentifier for the first iteration shared, in case the shared object is Iterated. If the object is not iterated, this attribute is null.

Supported API: false

Parameters:
a_IterationId -

getTargetContainerRef

public WTContainerRef getTargetContainerRef()
Gets the value of the attribute: TARGET_CONTAINER_REF. Reference to the container that is sharing the object.

Supported API: false

Returns:
WTContainerRef

setTargetContainerRef

public void setTargetContainerRef(WTContainerRef a_TargetContainerRef)
Sets the value of the attribute: TARGET_CONTAINER_REF. Reference to the container that is sharing the object.

Supported API: false

Parameters:
a_TargetContainerRef -

getSourceContainerRef

public WTContainerRef getSourceContainerRef()
Gets the value of the attribute: SOURCE_CONTAINER_REF. Reference to the container that ows the shared object.

Supported API: false

Returns:
WTContainerRef

setSourceContainerRef

public void setSourceContainerRef(WTContainerRef a_SourceContainerRef)
Sets the value of the attribute: SOURCE_CONTAINER_REF. Reference to the container that ows the shared object.

Supported API: false

Parameters:
a_SourceContainerRef -

getTargetFolderRef

public ObjectReference getTargetFolderRef()
Gets the value of the attribute: TARGET_FOLDER_REF. Folder in the target container where the shared object is located. Null if the shared object is not foldered.

Supported API: false

Returns:
ObjectReference

setTargetFolderRef

public void setTargetFolderRef(ObjectReference a_TargetFolderRef)
Sets the value of the attribute: TARGET_FOLDER_REF. Folder in the target container where the shared object is located. Null if the shared object is not foldered.

Supported API: false

Parameters:
a_TargetFolderRef -

getCreatorRef

public WTPrincipalReference getCreatorRef()
Gets the value of the attribute: CREATOR_REF. Reference to the user who created the sharing.

Supported API: false

Returns:
WTPrincipalReference

setCreatorRef

public void setCreatorRef(WTPrincipalReference a_CreatorRef)
Sets the value of the attribute: CREATOR_REF. Reference to the user who created the sharing.

Supported API: false

Parameters:
a_CreatorRef -

isEnabled

public boolean isEnabled()
Gets the value of the attribute: ENABLED. Determines if the sharing is active. It is set to 'true' is active or 'false' otherwise. This attribute is used for temporary inactivation of the sharing. The initial value is 'true'.

Supported API: false

Returns:
boolean

setEnabled

public void setEnabled(boolean a_Enabled)
Sets the value of the attribute: ENABLED. Determines if the sharing is active. It is set to 'true' is active or 'false' otherwise. This attribute is used for temporary inactivation of the sharing. The initial value is 'true'.

Supported API: false

Parameters:
a_Enabled -

getShareKey

public long getShareKey()
Gets the value of the attribute: SHARE_KEY. Identification of the sharing. Used to identify the sharing as a member of a "shared object collection."

Shared object collections can result from sharing a complex object like a folder or a part or through multiple select. In these cases it might be desirable to cancel the share to all objects of the share. The information about the set is held in the key attribute.

Note: the shared object key is not enough to characterize the collective share operation but the pair is.

This attribute is modeled as a String so not to constrain what can be stored in it. For cases where it is possible to identify a single object to represent the collection (such as a folder), a possibility is to use a stringfied representation of the object's reference.

Supported API: false

Returns:
long

setShareKey

public void setShareKey(long a_ShareKey)
Sets the value of the attribute: SHARE_KEY. Identification of the sharing. Used to identify the sharing as a member of a "shared object collection."

Shared object collections can result from sharing a complex object like a folder or a part or through multiple select. In these cases it might be desirable to cancel the share to all objects of the share. The information about the set is held in the key attribute.

Note: the shared object key is not enough to characterize the collective share operation but the pair is.

This attribute is modeled as a String so not to constrain what can be stored in it. For cases where it is possible to identify a single object to represent the collection (such as a folder), a possibility is to use a stringfied representation of the object's reference.

Supported API: false

Parameters:
a_ShareKey -

getShareType

public int getShareType()
Gets the value of the attribute: SHARE_TYPE.

Supported API: false

Returns:
int

setShareType

public void setShareType(int a_ShareType)
Sets the value of the attribute: SHARE_TYPE.

Supported API: false

Parameters:
a_ShareType -

getShared

public Persistable getShared()
Returns the target object. Checks the 'version' attribute to return the actual object or the latest.

Supported API: false

Returns:
Persistable

toString

public String toString()
Creates and returns String representation of the map.

Supported API: false

Overrides:
toString in class WTObject
Returns:
String

newSharedContainerMap

public static SharedContainerMap newSharedContainerMap()
                                                throws WTException


Supported API: false

Returns:
SharedContainerMap
Throws:
WTException

copy

public SharedContainerMap copy(Persistable object)
                        throws WTException
Creates a non persistent copy of the object referencing the Persistable object passed as argument in case it is not null. Otherwise the referenced object is the same as the original map.

Supported API: false

Parameters:
object -
Returns:
SharedContainerMap
Throws:
WTException

getStructureHandle

public Persistable getStructureHandle()
                               throws WTException
Returns the handle of the structure for the map. For folder sharing, the structure handle is the top of the folder heirarchy that was shared. Returns null for SINGLE and COLLECTIVE sharings.

Supported API: false

Returns:
Persistable
Throws:
WTException

isVersionShare

public boolean isVersionShare()
Determines whether the share map corresponds to a version share. Returns 'true' if this is the case; 'false' otherwise.

Supported API: false

Returns:
boolean

equals

public boolean equals(SharedContainerMap other)


Supported API: false

Parameters:
other -
Returns:
boolean

initialize

protected void initialize()
                   throws WTException
Sets the default container and domain.

Supported API: false

Overrides:
initialize in class Item
Throws:
WTException

getEntrySet

public AclEntrySet getEntrySet()
Gets the value of the attribute: ENTRY_SET.

Supported API: false

Specified by:
getEntrySet in interface AdHocControlled
Returns:
AclEntrySet

setEntrySet

public void setEntrySet(AclEntrySet a_EntrySet)
Sets the value of the attribute: ENTRY_SET.

Supported API: false

Specified by:
setEntrySet in interface AdHocControlled
Parameters:
a_EntrySet -

getContainerName

public String getContainerName()
Gets the value of the attribute: CONTAINER_NAME. The name of the WTContainer this object is assigned to.

Supported API: false

Specified by:
getContainerName in interface WTContained
Returns:
String

getContainer

public WTContainer getContainer()
Gets the object for the association that plays role: CONTAINER.

Supported API: false

Specified by:
getContainer in interface WTContained
Returns:
WTContainer

setContainer

public void setContainer(WTContainer a_Container)
                  throws WTPropertyVetoException,
                         WTException
Sets the object for the association that plays role: CONTAINER.

Supported API: false

Specified by:
setContainer in interface WTContained
Parameters:
a_Container -
Throws:
WTPropertyVetoException
WTException

getContainerReference

public WTContainerRef getContainerReference()
Gets the value of the attribute: CONTAINER_REFERENCE.

Supported API: false

Specified by:
getContainerReference in interface WTContained
Returns:
WTContainerRef

setContainerReference

public void setContainerReference(WTContainerRef a_ContainerReference)
                           throws WTPropertyVetoException
Sets the value of the attribute: CONTAINER_REFERENCE.

Supported API: false

Specified by:
setContainerReference in interface WTContained
Parameters:
a_ContainerReference -
Throws:
WTPropertyVetoException

containerReferenceValidate

private void containerReferenceValidate(WTContainerRef a_ContainerReference)
                                 throws WTPropertyVetoException
Parameters:
a_ContainerReference -
Throws:
WTPropertyVetoException

equals

public boolean equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifiers. Changed or stale copies are still considered equal by this method. Delegates to PersistenceHelper.equals(Persistable,Object).

Warning: Certain core Windchill operations may depend upon equals being ObjectIdentifier-based. Changes to the default implementation should be done with care, if at all.

Supported API: false

Overrides:
equals in class Item
Parameters:
obj -
Returns:
boolean

hashCode

public int hashCode()
Returns a hash code for this object based upon its ObjectIdentifier. Delegates to PersistenceHelper.hashCode(Persistable).

Warning: Certain core Windchill operations may depend upon hashCode being ObjectIdentifier-based. Changes to the default implementation should be done with care, if at all.

Supported API: false

Overrides:
hashCode in class Item
Returns:
int

isVersion

private boolean isVersion()

getOid

public static ObjectIdentifier getOid(Object object)
Returns object's associated oid. Accepts not only Persistable as argument but also ObjectReference and ObjectIdentifier objects. Returns 'null' if object is null.


getId

private static long getId(Object object)
Returns object's id.


getOidString

public static String getOidString(Object obj)

same

private boolean same(Object obj1,
                     Object obj2)

sameReference

private boolean sameReference(ObjectReference ref1,
                              ObjectReference ref2)

sameIterId

private boolean sameIterId(IterationIdentifier iter_id1,
                           IterationIdentifier iter_id2)

sameEntrySet

private boolean sameEntrySet(AclEntrySet set1,
                             AclEntrySet set2)