wt.content
Class HttpContentOperation

java.lang.Object
  extended bywt.fc.WTObject
      extended bywt.fc.Item
          extended bywt.content.HttpContentOperation
All Implemented Interfaces:
AccessControlled, DisplayIdentification, DomainAdministered, Externalizable, NetFactor, ObjectMappable, Ownable, Persistable, Serializable

public class HttpContentOperation
extends Item
implements Ownable, Externalizable

This is an implementation class that represents a single upload or download and holds the status within it. It is created by a call to the prepareForUpload or prepareForDownload methods in the ContentService. This class and it's methods should not be used.

Use the newHttpContentOperation static factory method(s), not the HttpContentOperation 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:
ContentHelper, ContentService, HttpOperationType, HttpOperationStatus, Serialized Form

Field Summary
static String CANCEL_METHOD
          Deprecated.  
private static String CLASSNAME
          Deprecated.  
static String DOWNLOAD_METHOD
          Deprecated.  
static long EXTERNALIZATION_VERSION_UID
          Deprecated.  
static String HTML_UPLOAD_METHOD
          Deprecated.  
private  String HTTP_CLASS
          Deprecated.  
static String HTTP_OP_ITEM_QUERY_KEY
          Deprecated.  
static String HTTP_OP_QUERY_KEY
          Deprecated.  
protected static long OLD_FORMAT_VERSION_UID
          Deprecated.  
private  HttpOperationType operation
          Deprecated.  
static String OPERATION
          Deprecated.  
static String OPERATION_STATUS
          Deprecated.  
private static int OPERATION_STATUS_UPPER_LIMIT
          Deprecated.  
private static int OPERATION_UPPER_LIMIT
          Deprecated.  
private  HttpOperationStatus operationStatus
          Deprecated.  
private  Ownership ownership
          Deprecated.  
private static String RESOURCE
          Deprecated.  
(package private) static long serialVersionUID
          Deprecated.  
static String STATUS_V
          Deprecated.  
private  Vector statusV
          Deprecated.  
static String UPLOAD_METHOD
          Deprecated.  
 
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.ownership.Ownable
OWNERSHIP
 
Fields inherited from interface wt.fc.Persistable
IDENTITY, PERSIST_INFO, TYPE
 
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
HttpContentOperation()
          Deprecated.  
 
Method Summary
 boolean equals(Object obj)
          Deprecated.  
 String getConceptualClassname()
          Deprecated.  
 URL getDownloadURL(HttpOperationItem opItem)
          Deprecated.  
 URL getGenerateUploadHtmlURL()
          Deprecated.  
 HttpOperationType getOperation()
          Deprecated.  
 HttpOperationStatus getOperationStatus()
          Deprecated.  
 Ownership getOwnership()
          Deprecated.  
 Vector getStatusV()
          Deprecated.  
 URL getUploadURL()
          Deprecated.  
 int hashCode()
          Deprecated.  
protected  void initialize()
          Deprecated. 

Supported API: false
static HttpContentOperation newHttpContentOperation()
          Deprecated.  
private  void operationStatusValidate(HttpOperationStatus a_OperationStatus)
          Deprecated.  
private  void operationValidate(HttpOperationType a_Operation)
          Deprecated.  
 void readExternal(ObjectInput input)
          Deprecated.  
 void readExternal(PersistentRetrieveIfc input)
          Deprecated.  
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(HttpContentOperation thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Deprecated.  
 void setOperation(HttpOperationType a_Operation)
          Deprecated.  
 void setOperationStatus(HttpOperationStatus a_OperationStatus)
          Deprecated.  
 void setOwnership(Ownership a_Ownership)
          Deprecated.  
 void setStatusV(Vector a_StatusV)
          Deprecated.  
 void writeExternal(ObjectOutput output)
          Deprecated.  
 void writeExternal(PersistentStoreIfc output)
          Deprecated.  
 
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, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wt.fc.Persistable
checkAttributes, getIdentity, getPersistInfo, getType, setPersistInfo
 
Methods inherited from interface wt.fc.NetFactor
getClassInfo
 

Field Detail

RESOURCE

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

CLASSNAME

private static final String CLASSNAME
Deprecated. 

STATUS_V

public static final String STATUS_V
Deprecated.  

Label for the attribute; Non persistant variable used internally

Supported API: false

See Also:
Constant Field Values

statusV

private Vector statusV
Deprecated. 

OPERATION_STATUS

public static final String OPERATION_STATUS
Deprecated.  

Label for the attribute.

Supported API: false

See Also:
Constant Field Values

OPERATION_STATUS_UPPER_LIMIT

private static int OPERATION_STATUS_UPPER_LIMIT
Deprecated. 

operationStatus

private HttpOperationStatus operationStatus
Deprecated. 

OPERATION

public static final String OPERATION
Deprecated.  

Label for the attribute.

Supported API: false

See Also:
Constant Field Values

OPERATION_UPPER_LIMIT

private static int OPERATION_UPPER_LIMIT
Deprecated. 

operation

private HttpOperationType operation
Deprecated. 

ownership

private Ownership ownership
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

HTTP_OP_QUERY_KEY

public static final String HTTP_OP_QUERY_KEY
Deprecated. 
See Also:
Constant Field Values

HTTP_OP_ITEM_QUERY_KEY

public static final String HTTP_OP_ITEM_QUERY_KEY
Deprecated. 
See Also:
Constant Field Values

UPLOAD_METHOD

public static final String UPLOAD_METHOD
Deprecated. 
See Also:
Constant Field Values

CANCEL_METHOD

public static final String CANCEL_METHOD
Deprecated. 
See Also:
Constant Field Values

DOWNLOAD_METHOD

public static final String DOWNLOAD_METHOD
Deprecated. 
See Also:
Constant Field Values

HTML_UPLOAD_METHOD

public static final String HTML_UPLOAD_METHOD
Deprecated. 
See Also:
Constant Field Values

HTTP_CLASS

private String HTTP_CLASS
Deprecated. 
Constructor Detail

HttpContentOperation

public HttpContentOperation()
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
Overrides:
writeExternal in class Item
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
Overrides:
readExternal in class Item
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(HttpContentOperation 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
Overrides:
writeExternal in class Item
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
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

getStatusV

public Vector getStatusV()
Deprecated.  

Gets the value of the attribute: STATUS_V. Non persistant variable used internally

Supported API: false

Returns:
Vector

setStatusV

public void setStatusV(Vector a_StatusV)
                throws WTPropertyVetoException
Deprecated.  

Sets the value of the attribute: STATUS_V. Non persistant variable used internally

Supported API: false

Parameters:
a_StatusV -
Throws:
WTPropertyVetoException

getOperationStatus

public HttpOperationStatus getOperationStatus()
Deprecated.  

Gets the object for the association that plays role: OPERATION_STATUS.

Supported API: false

Returns:
HttpOperationStatus

setOperationStatus

public void setOperationStatus(HttpOperationStatus a_OperationStatus)
                        throws WTPropertyVetoException
Deprecated.  

Sets the object for the association that plays role: OPERATION_STATUS.

Supported API: false

Parameters:
a_OperationStatus -
Throws:
WTPropertyVetoException

operationStatusValidate

private void operationStatusValidate(HttpOperationStatus a_OperationStatus)
                              throws WTPropertyVetoException
Deprecated. 
Parameters:
a_OperationStatus -
Throws:
WTPropertyVetoException

getOperation

public HttpOperationType getOperation()
Deprecated.  

Gets the object for the association that plays role: OPERATION.

Supported API: false

Returns:
HttpOperationType

setOperation

public void setOperation(HttpOperationType a_Operation)
                  throws WTPropertyVetoException
Deprecated.  

Sets the object for the association that plays role: OPERATION.

Supported API: false

Parameters:
a_Operation -
Throws:
WTPropertyVetoException

operationValidate

private void operationValidate(HttpOperationType a_Operation)
                        throws WTPropertyVetoException
Deprecated. 
Parameters:
a_Operation -
Throws:
WTPropertyVetoException

getUploadURL

public URL getUploadURL()
                 throws WTException
Deprecated.  

This generates the appropriate URL to call to initiate the upload of content. This method should never be called from the client. It is called by the posting mechanism that is used in the upload html page.

Supported API: false

Returns:
URL
Throws:
WTException

getGenerateUploadHtmlURL

public URL getGenerateUploadHtmlURL()
                             throws WTException
Deprecated.  

This generates the appropriate URL to initiate an upload of content from the client in a AppletContext.showDocument call. This is what will bring up a generated html page appropriate for this upload.

Supported API: false

Returns:
URL
Throws:
WTException

getDownloadURL

public URL getDownloadURL(HttpOperationItem opItem)
                   throws WTException
Deprecated.  

This generates the appropriate URL to initiate a Download of content from the client in a AppletContext.showDocument call.

Supported API: false

Parameters:
opItem -
Returns:
URL
Throws:
WTException

newHttpContentOperation

public static HttpContentOperation newHttpContentOperation()
                                                    throws WTException
Deprecated.  

Default factory for the class.

Supported API: false

Returns:
HttpContentOperation
Throws:
WTException

getOwnership

public Ownership getOwnership()
Deprecated.  

Gets the object for the association that plays role: OWNERSHIP. The persistent state for an Ownable object is maintained via the Ownership object. Access to information for the Ownership object should be done via methods on the OwnershipHelper.

Supported API: false

Specified by:
getOwnership in interface Ownable
Returns:
Ownership

setOwnership

public void setOwnership(Ownership a_Ownership)
Deprecated.  

Sets the object for the association that plays role: OWNERSHIP. The persistent state for an Ownable object is maintained via the Ownership object. Access to information for the Ownership object should be done via methods on the OwnershipHelper.

Supported API: false

Specified by:
setOwnership in interface Ownable
Parameters:
a_Ownership -

equals

public boolean equals(Object obj)
Deprecated.  

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()
Deprecated.  

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

initialize

protected void initialize()
                   throws WTException
Deprecated. 
Description copied from class: Item


Supported API: false

Overrides:
initialize in class Item
Throws:
WTException