|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.content.ContentItem
wt.content.ApplicationData
Handles the file system information for the content data. This class is aggregated into classes implementing the ContentHolder interface.
Use the newApplicationData
static factory method(s), not
the ApplicationData
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 | |
static String |
APP_DATA_KEY
|
private long |
checksum
|
static String |
CHECKSUM
Label for the attribute; The checksum of the uploaded file Supported API: false |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
FILE_NAME
Label for the attribute; The fileName of this piece of content. |
private static int |
FILE_NAME_UPPER_LIMIT
|
static String |
FILE_SIZE
Label for the attribute; The byte size of the uploaded file Supported API: false |
private String |
fileName
|
private long |
fileSize
|
static String |
HOLDER_KEY
|
private String |
HTTP_CLASS
|
static String |
INTENDED_FOR_HTTP_OP
Label for the attribute; This is a non-persisted attribute that is used to mark ApplicationData objects as intended for Upload or Download. |
private boolean |
intendedForHttpOp
|
boolean |
newContent
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static String |
STREAM_DATA
Label for the attribute. |
static String |
STREAM_ID
Label for the attribute. |
private ObjectReference |
streamData
|
private long |
streamId
|
static String |
UPLOADED_FROM_PATH
Label for the attribute; The path where this piece of content was uploaded from Supported API: true |
private static int |
UPLOADED_FROM_PATH_UPPER_LIMIT
|
private String |
uploadedFromPath
|
static String |
VIEW_METHOD
|
Fields inherited from class wt.content.ContentItem |
CATEGORY, CREATED_BY, DESCRIPTION, FORMAT, FORMAT_NAME, HOLDER_LINK, INTENT_TO_CHANGE, ROLE, STALE |
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.fc.BusinessInformation |
BUSINESS_TYPE, IDENTITY |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
ApplicationData()
|
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. |
private void |
fileNameValidate(String a_FileName)
|
String |
getBusinessType()
Supported API: false |
long |
getChecksum()
Gets the value of the attribute: CHECKSUM. |
String |
getConceptualClassname()
Deprecated. |
String |
getFileName()
Gets the value of the attribute: FILE_NAME. |
long |
getFileSize()
Gets the value of the attribute: FILE_SIZE. |
float |
getFileSizeKB()
Supported API: false |
String |
getIdentity()
Supported API: false |
ObjectReference |
getStreamData()
Gets the object for the association that plays role: STREAM_DATA. |
long |
getStreamId()
Gets the value of the attribute: STREAM_ID. |
String |
getUploadedFromPath()
Gets the value of the attribute: UPLOADED_FROM_PATH. |
URL |
getViewContentURL(ContentHolder holder)
Generates a URL that can be used in a AppletContext.showDocument( ) call from an applet. |
URL |
getViewContentURL(ContentHolder holder,
boolean withSign)
Generates a URL that can be used in a AppletContext.showDocument() call from an applet. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize(ContentHolder holder)
Supports initialization, following construction of an instance. |
boolean |
isIntendedForHttpOp()
Gets the value of the attribute: INTENDED_FOR_HTTP_OP. |
static ApplicationData |
newApplicationData(ContentHolder holder)
Instatiates a new ApplicationData object based on a ContentHolder Supported API: true |
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(ApplicationData thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private static float |
roundToTwoDecimals(float number)
|
void |
setChecksum(long a_Checksum)
Sets the value of the attribute: CHECKSUM. |
void |
setFileName(String a_FileName)
Sets the value of the attribute: FILE_NAME. |
void |
setFileSize(long a_FileSize)
Sets the value of the attribute: FILE_SIZE. |
void |
setIntendedForHttpOp(boolean a_IntendedForHttpOp)
Sets the value of the attribute: INTENDED_FOR_HTTP_OP. |
void |
setStreamData(ObjectReference a_StreamData)
Sets the object for the association that plays role: STREAM_DATA. |
void |
setStreamId(long a_StreamId)
Sets the value of the attribute: STREAM_ID. |
void |
setUploadedFromPath(String a_UploadedFromPath)
Sets the value of the attribute: UPLOADED_FROM_PATH. |
private void |
streamDataValidate(ObjectReference a_StreamData)
|
private void |
uploadedFromPathValidate(String a_UploadedFromPath)
|
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.content.ContentItem |
getCategory, getCreatedBy, getDescription, getFormat, getFormatName, getHolderLink, getIntentToChange, getRole, isStale, readVersion, setCategory, setCreatedBy, setDescription, setFormat, setFormatName, setHolderLink, setIntentToChange, setRole, setStale |
Methods inherited from class wt.fc.WTObject |
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getModifyTimestamp, getPersistInfo, getType, initialize, readVersion, setPersistInfo, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String UPLOADED_FROM_PATH
private static int UPLOADED_FROM_PATH_UPPER_LIMIT
private String uploadedFromPath
public static final String FILE_NAME
private static int FILE_NAME_UPPER_LIMIT
private String fileName
public static final String FILE_SIZE
private long fileSize
public static final String INTENDED_FOR_HTTP_OP
ContentService
,
ContentHelper
,
Constant Field Valuesprivate boolean intendedForHttpOp
public static final String CHECKSUM
private long checksum
public static final String STREAM_ID
private long streamId
public static final String STREAM_DATA
private ObjectReference streamData
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final String VIEW_METHOD
private String HTTP_CLASS
public static final String HOLDER_KEY
public static final String APP_DATA_KEY
public boolean newContent
Constructor Detail |
public ApplicationData()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class ContentItem
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class ContentItem
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ApplicationData 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 ContentItem
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 ContentItem
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String getUploadedFromPath()
public void setUploadedFromPath(String a_UploadedFromPath) throws WTPropertyVetoException
a_UploadedFromPath
-
WTPropertyVetoException
private void uploadedFromPathValidate(String a_UploadedFromPath) throws WTPropertyVetoException
a_UploadedFromPath
-
WTPropertyVetoException
public String getFileName()
public void setFileName(String a_FileName) throws WTPropertyVetoException
a_FileName
-
WTPropertyVetoException
private void fileNameValidate(String a_FileName) throws WTPropertyVetoException
a_FileName
-
WTPropertyVetoException
public long getFileSize()
public void setFileSize(long a_FileSize) throws WTPropertyVetoException
a_FileSize
-
WTPropertyVetoException
public boolean isIntendedForHttpOp()
ContentService
,
ContentHelper
public void setIntendedForHttpOp(boolean a_IntendedForHttpOp) throws WTPropertyVetoException
a_IntendedForHttpOp
-
WTPropertyVetoException
ContentService
,
ContentHelper
public long getChecksum()
public void setChecksum(long a_Checksum) throws WTPropertyVetoException
a_Checksum
-
WTPropertyVetoException
public long getStreamId()
public void setStreamId(long a_StreamId) throws WTPropertyVetoException
a_StreamId
-
WTPropertyVetoException
public ObjectReference getStreamData()
public void setStreamData(ObjectReference a_StreamData) throws WTPropertyVetoException
a_StreamData
-
WTPropertyVetoException
private void streamDataValidate(ObjectReference a_StreamData) throws WTPropertyVetoException
a_StreamData
-
WTPropertyVetoException
public static ApplicationData newApplicationData(ContentHolder holder) throws WTException
holder
-
WTException
protected void initialize(ContentHolder holder) throws WTException
holder
-
WTException
public URL getViewContentURL(ContentHolder holder) throws WTException
holder
-
WTException
public String getIdentity()
getIdentity
in interface BusinessInformation
getIdentity
in class ContentItem
public String getBusinessType()
getBusinessType
in interface BusinessInformation
getBusinessType
in class ContentItem
public float getFileSizeKB()
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 ContentItem
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 ContentItem
private static float roundToTwoDecimals(float number)
public URL getViewContentURL(ContentHolder holder, boolean withSign) throws WTException
holder
- withSign
- Normally it is true.
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |