|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.enterprise.RevisionControlled
wt.doc.WTDocument
wt.federation.ProxyDocument
Use the newProxyDocument
static factory method(s), not the
ProxyDocument
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: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private long |
expirationTime
|
static long |
EXTERNALIZATION_VERSION_UID
|
private Mastered |
master
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private long |
refreshTime
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private ServiceIdentifier |
serviceId
|
static String |
SOURCE_ATTRIBUTES
Label for the attribute. |
private Hashtable |
sourceAttributes
|
private Vector |
sourceContentList
|
private String |
sourceObjectId
|
private String |
sourceURL
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.doc.WTDocument |
CONTAINER, DEPARTMENT, DESCRIPTION, DOC_TYPE, NAME, NUMBER, R51_EXTERNALIZATION_VERSION_UID, R60_EXTERNALIZATION_VERSION_UID, TITLE |
Fields inherited from class wt.enterprise.RevisionControlled |
MASTER, VERSION_DISPLAY_IDENTIFIER, VERSION_DISPLAY_IDENTITY, VERSION_DISPLAY_TYPE |
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.federation.Federated |
EXPIRATION_TIME, REFRESH_TIME, SERVICE_ID, SOURCE_OBJECT_ID, SOURCE_URL |
Fields inherited from interface wt.content.FormatContentHolder |
FORMAT, FORMAT_NAME, PRIMARY |
Fields inherited from interface wt.content.ContentHolder |
CONTENT_VECTOR, HAS_CONTENTS, HTTP_VECTOR, OPERATION |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.vc.Iterated |
BRANCH_IDENTIFIER, CONTROL_BRANCH, CREATOR, CREATOR_EMAIL, CREATOR_FULL_NAME, CREATOR_NAME, ITERATION_IDENTIFIER, ITERATION_INFO, ITERATION_NOTE, LATEST_ITERATION, MASTER, MASTER_REFERENCE, MODIFIER, MODIFIER_EMAIL, MODIFIER_FULL_NAME, MODIFIER_NAME |
Fields inherited from interface wt.type.Typed |
TYPE_DEFINITION_REFERENCE |
Fields inherited from interface wt.iba.value.IBAHolder |
ATTRIBUTE_CONTAINER |
Fields inherited from interface wt.inf.container.WTContained |
CONTAINER_ID, CONTAINER_NAME, CONTAINER_REFERENCE |
Fields inherited from interface wt.enterprise.Templateable |
TEMPLATE, TEMPLATED |
Fields inherited from interface wt.org.OrganizationOwnedVersion |
MASTER, MASTER_REFERENCE, ORGANIZATION_REFERENCE |
Fields inherited from interface wt.org.OrganizationOwned |
ORGANIZATION, ORGANIZATION_CODING_SYSTEM, ORGANIZATION_NAME, ORGANIZATION_UNIQUE_IDENTIFIER |
Fields inherited from interface wt.vc.OneOffVersioned |
ONE_OFF_VERSION_IDENTIFIER, ONE_OFF_VERSION_INFO |
Fields inherited from interface wt.vc.Versioned |
VERSION_IDENTIFIER, VERSION_INFO |
Fields inherited from interface wt.ufid.Federatable |
FEDERATABLE_INFO |
Fields inherited from interface wt.admin.DomainAdministered |
DOMAIN_REF, INHERITED_DOMAIN |
Fields inherited from interface wt.fc.BusinessInformation |
BUSINESS_TYPE, IDENTITY |
Fields inherited from interface wt.vc.wip.Workable |
CHECKOUT_INFO |
Fields inherited from interface wt.locks.Lockable |
LOCK, LOCK_DATE, LOCK_NOTE, LOCKED, LOCKER, LOCKER_EMAIL, LOCKER_FULL_NAME, LOCKER_NAME |
Fields inherited from interface wt.ownership.Ownable |
OWNERSHIP |
Fields inherited from interface wt.folder.Foldered |
CABINET, CABINET_NAME, FOLDERING_INFO |
Fields inherited from interface wt.folder.CabinetBased |
CABINET_REFERENCE, FOLDER_PATH, LOCATION |
Fields inherited from interface wt.notify.Notifiable |
EVENT_SET |
Fields inherited from interface wt.index.Indexable |
INDEXER_SET |
Fields inherited from interface wt.lifecycle.LifeCycleManaged |
LIFE_CYCLE_AT_GATE, LIFE_CYCLE_BASIC, LIFE_CYCLE_NAME, LIFE_CYCLE_STATE, LIFE_CYCLE_TEMPLATE, STATE |
Fields inherited from interface wt.access.AdHocControlled |
ENTRY_SET |
Fields inherited from interface wt.team.TeamManaged |
TEAM_ID, TEAM_IDENTITY, TEAM_NAME, TEAM_TEMPLATE_ID, TEAM_TEMPLATE_IDENTITY, TEAM_TEMPLATE_NAME |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
ProxyDocument()
No-argument constructor returning an initialized instance of the class. |
Method Summary | |
boolean |
equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifier s. |
QueryResult |
findLinks(Class targetLinkClass,
String obj1Role,
Persistable obj2)
Return all link objects that exist between the Federated object and the specified source object. |
String |
getConceptualClassname()
Deprecated. |
long |
getExpirationTime()
Gets the value of the attribute: EXPIRATION_TIME. |
Mastered |
getMaster()
Gets the object for the association that plays the role: MASTERED Supported API: true |
long |
getRefreshTime()
Gets the value of the attribute: REFRESH_TIME. |
FederatedService |
getService()
Return the service object referenced by the serviceId attribute. |
ServiceIdentifier |
getServiceId()
Gets the object for the association that plays role: SERVICE_ID. |
Hashtable |
getSourceAttributes()
Gets the value of the attribute: SOURCE_ATTRIBUTES. |
String |
getSourceName()
Gets the value of the attribute: SOURCE_NAME Supported API: true |
String |
getSourceNumber()
Gets the value of the attribute: SOURCE_NUMBER Supported API: true |
String |
getSourceObjectId()
Gets the value of the attribute: SOURCE_OBJECT_ID. |
String |
getSourceURL()
Gets the value of the attribute: SOURCE_URL. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize(String number,
String name,
DocumentType type)
Supports initialization, following construction of an instance. |
protected void |
initialize(WTDocumentMaster master)
Supports initialization, following construction of an instance. |
private void |
masterReferenceValidate(ObjectReference a_MasterReference)
|
QueryResult |
navigate(String role,
Class linkClass,
boolean onlyOtherSide)
Return objects related to this federated source object given a role and link class. |
QueryResult |
navigate(String role,
QuerySpec criteria,
boolean onlyOtherSide)
Return objects related to this federated source object given a role and link selection crtieria. |
static ProxyDocument |
newProxyDocument()
Supported API: false |
static ProxyDocument |
newProxyDocument(String number,
String name,
DocumentType type)
Supported API: false |
static ProxyDocument |
newProxyDocument(WTDocumentMaster master)
Supported API: false |
void |
postStore()
The persistence manager calls this method just after storing the proxy object in the database. |
void |
prepareForStore()
The persistence manager calls this method just before storing the proxy object in the database. |
void |
preset()
This method is called when a proxy object is first created by a service, just after the object is instantiated and its readExternal method has been called to populate its properties from attributes obtained from the remote information source. |
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(ProxyDocument thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
refresh()
Refresh the derived attributes of the object. |
void |
refreshIfStale()
Refresh the derived attributes of the object, but only if the properties are stale. |
private void |
retrieveSourceAttributes()
Retrieve the raw attributes of the object. |
private void |
serviceIdValidate(ServiceIdentifier a_ServiceId)
|
void |
setExpirationTime(long a_ExpirationTime)
Sets the value of the attribute: EXPIRATION_TIME. |
void |
setMasterReference(ObjectReference a_MasterReference)
Sets the value of the attribute: MASTER_REFERENCE. |
void |
setRefreshTime(long a_RefreshTime)
Sets the value of the attribute: REFRESH_TIME. |
void |
setServiceId(ServiceIdentifier a_ServiceId)
Sets the object for the association that plays role: SERVICE_ID. |
void |
setSourceAttributes(Hashtable a_SourceAttributes)
Sets the value of the attribute: SOURCE_ATTRIBUTES. |
void |
setSourceName(String name)
Sets the value of the attribute: SOURCE_NAME Supported API: true |
void |
setSourceNumber(String number)
Sets the value of the attribute: SOURCE_NUMBER Supported API: true |
void |
setSourceObjectId(String a_SourceObjectId)
Sets the value of the attribute: SOURCE_OBJECT_ID. |
void |
setSourceURL(String a_SourceURL)
Sets the value of the attribute: SOURCE_URL. |
private void |
sourceObjectIdValidate(String a_SourceObjectId)
|
private void |
sourceURLValidate(String a_SourceURL)
|
void |
update()
Update the derived attributes of the object on the source service. |
private void |
updateContentItems()
Update content items in the ProxyDocument |
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.WTObject |
duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.Persistable |
getIdentity, getPersistInfo, getType, setPersistInfo |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo |
Methods inherited from interface wt.vc.Iterated |
getBranchIdentifier, getControlBranch, getCreator, getCreatorEMail, getCreatorFullName, getCreatorName, getIterationIdentifier, getIterationInfo, getIterationNote, getMasterReference, getModifier, getModifierEMail, getModifierFullName, getModifierName, isLatestIteration, setControlBranch, setIterationInfo, setMaster |
Methods inherited from interface wt.org.OrganizationOwnedVersion |
getMasterReference, setMaster |
Methods inherited from interface wt.vc.Versioned |
getVersionIdentifier, getVersionInfo, setVersionInfo |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String SOURCE_ATTRIBUTES
private Hashtable sourceAttributes
private String sourceObjectId
private String sourceURL
private long expirationTime
private long refreshTime
private ServiceIdentifier serviceId
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private Mastered master
private Vector sourceContentList
private static boolean VERBOSE
Constructor Detail |
public ProxyDocument() throws WTException
WTException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class WTDocument
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class WTDocument
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ProxyDocument thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class WTDocument
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class WTDocument
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class WTDocument
public Hashtable getSourceAttributes()
public void setSourceAttributes(Hashtable a_SourceAttributes) throws WTPropertyVetoException
a_SourceAttributes
-
WTPropertyVetoException
public void setMasterReference(ObjectReference a_MasterReference) throws WTPropertyVetoException
setMasterReference
in interface Iterated
setMasterReference
in class WTDocument
a_MasterReference
-
WTPropertyVetoException
private void masterReferenceValidate(ObjectReference a_MasterReference) throws WTPropertyVetoException
a_MasterReference
-
WTPropertyVetoException
public String getSourceName()
public void setSourceName(String name) throws WTPropertyVetoException
name
-
WTPropertyVetoException
public String getSourceNumber()
public void setSourceNumber(String number) throws WTPropertyVetoException
number
-
WTPropertyVetoException
public Mastered getMaster()
getMaster
in interface Iterated
getMaster
in class RevisionControlled
Mastered
public static ProxyDocument newProxyDocument() throws WTException
WTException
public static ProxyDocument newProxyDocument(WTDocumentMaster master) throws WTException
master
-
WTException
protected void initialize(WTDocumentMaster master) throws WTException
initialize
in class WTDocument
master
-
WTException
public static ProxyDocument newProxyDocument(String number, String name, DocumentType type) throws WTException
number
- name
- type
-
WTException
protected void initialize(String number, String name, DocumentType type) throws WTException
initialize
in class WTDocument
number
- name
- type
-
WTException
public String getSourceObjectId()
getSourceObjectId
in interface Federated
public void setSourceObjectId(String a_SourceObjectId) throws WTPropertyVetoException
setSourceObjectId
in interface Federated
a_SourceObjectId
-
WTPropertyVetoException
private void sourceObjectIdValidate(String a_SourceObjectId) throws WTPropertyVetoException
a_SourceObjectId
-
WTPropertyVetoException
public String getSourceURL()
getSourceURL
in interface Federated
public void setSourceURL(String a_SourceURL) throws WTPropertyVetoException
setSourceURL
in interface Federated
a_SourceURL
-
WTPropertyVetoException
private void sourceURLValidate(String a_SourceURL) throws WTPropertyVetoException
a_SourceURL
-
WTPropertyVetoException
public long getExpirationTime()
getExpirationTime
in interface Federated
public void setExpirationTime(long a_ExpirationTime) throws WTPropertyVetoException
setExpirationTime
in interface Federated
a_ExpirationTime
-
WTPropertyVetoException
public long getRefreshTime()
getRefreshTime
in interface Federated
public void setRefreshTime(long a_RefreshTime) throws WTPropertyVetoException
setRefreshTime
in interface Federated
a_RefreshTime
-
WTPropertyVetoException
public FederatedService getService() throws FederationServicesException
getService
in interface Federated
FederationServicesException
public void preset() throws FederationServicesException
preset
in interface Federated
FederationServicesException
public void refresh() throws FederationServicesException
refresh
in interface Federated
FederationServicesException
public void refreshIfStale() throws FederationServicesException
refreshIfStale
in interface Federated
FederationServicesException
public void update() throws FederationServicesException
update
in interface Federated
FederationServicesException
public void prepareForStore() throws FederationServicesException
prepareForStore
in interface Federated
FederationServicesException
public QueryResult findLinks(Class targetLinkClass, String obj1Role, Persistable obj2) throws FederationServicesException
findLinks
in interface Federated
targetLinkClass
- obj1Role
- obj2
-
FederationServicesException
public QueryResult navigate(String role, Class linkClass, boolean onlyOtherSide) throws FederationServicesException
navigate
in interface Federated
role
- linkClass
- onlyOtherSide
-
FederationServicesException
public QueryResult navigate(String role, QuerySpec criteria, boolean onlyOtherSide) throws FederationServicesException
navigate
in interface Federated
role
- criteria
- onlyOtherSide
-
FederationServicesException
public void postStore() throws FederationServicesException
postStore
in interface Federated
FederationServicesException
public ServiceIdentifier getServiceId()
getServiceId
in interface Federated
public void setServiceId(ServiceIdentifier a_ServiceId) throws WTPropertyVetoException
setServiceId
in interface Federated
a_ServiceId
-
WTPropertyVetoException
private void serviceIdValidate(ServiceIdentifier a_ServiceId) throws WTPropertyVetoException
a_ServiceId
-
WTPropertyVetoException
public boolean equals(Object obj)
ObjectIdentifier
s.
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
equals
in class WTDocument
obj
-
public int hashCode()
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
hashCode
in class WTDocument
private void retrieveSourceAttributes() throws FederationServicesException
FederationServicesException
private void updateContentItems() throws FederationServicesException
FederationServicesException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |