|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.content.ContentItem
This is the abstract class that represents a single piece of content.
Supported API: true
Extendable: false
ContentService
,
ContentHelper
,
ApplicationData
,
URLData
,
Serialized FormField Summary | |
private String |
category
|
static String |
CATEGORY
Label for the attribute. |
private static int |
CATEGORY_UPPER_LIMIT
|
private static String |
CLASSNAME
|
static String |
CREATED_BY
Label for the attribute. |
private WTPrincipalReference |
createdBy
|
private String |
description
|
static String |
DESCRIPTION
Label for the attribute; The descriptive string about this piece of content Supported API: false |
private static int |
DESCRIPTION_UPPER_LIMIT
|
static long |
EXTERNALIZATION_VERSION_UID
|
private DataFormatReference |
format
|
static String |
FORMAT
Label for the attribute. |
static String |
FORMAT_NAME
Label for the attribute. |
static String |
HOLDER_LINK
Label for the attribute; Non-persistent reference to the link between the ContentHolder and the ContentItem.l Supported API: false |
private HolderToContent |
holderLink
|
static String |
INTENT_TO_CHANGE
Label for the attribute; This is a boolean used for display purposes in the client. |
private Boolean |
intentToChange
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
private ContentRoleType |
role
|
static String |
ROLE
Label for the attribute. |
private static int |
ROLE_UPPER_LIMIT
|
(package private) static long |
serialVersionUID
|
private boolean |
stale
|
static String |
STALE
Label for the attribute. |
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 | |
ContentItem()
|
Method Summary | |
private void |
categoryValidate(String a_Category)
|
private void |
createdByValidate(WTPrincipalReference a_CreatedBy)
|
private void |
descriptionValidate(String a_Description)
|
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 |
formatValidate(DataFormatReference a_Format)
|
String |
getBusinessType()
Deprecated. Replaced by IdentityFactory.getDispayType(object) to return a localizable equivalent of getBusinessType(). Another alternative is ((WTObject)obj).getDisplayType(). |
String |
getCategory()
Gets the value of the attribute: CATEGORY. |
WTPrincipalReference |
getCreatedBy()
Gets the object for the association that plays role: CREATED_BY. |
String |
getDescription()
Gets the value of the attribute: DESCRIPTION. |
DataFormatReference |
getFormat()
Gets the object for the association that plays role: FORMAT. |
String |
getFormatName()
Gets the value of the attribute: FORMAT_NAME. |
HolderToContent |
getHolderLink()
Gets the value of the attribute: HOLDER_LINK. |
String |
getIdentity()
Deprecated. Replaced by IdentityFactory.getDispayIdentifier(object) to return a localizable equivalent of getIdentity(). To return a localizable value which includes the object type, use IdentityFactory.getDisplayIdentity(object). Other alternatives are ((WTObject)obj).getDisplayIdentifier() and ((WTObject)obj).getDisplayIdentity() |
Boolean |
getIntentToChange()
Gets the value of the attribute: INTENT_TO_CHANGE. |
ContentRoleType |
getRole()
Gets the object for the association that plays role: ROLE. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
boolean |
isStale()
Gets the value of the attribute: STALE. |
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(ContentItem thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private void |
roleValidate(ContentRoleType a_Role)
|
void |
setCategory(String a_Category)
Sets the value of the attribute: CATEGORY. |
void |
setCreatedBy(WTPrincipalReference a_CreatedBy)
Sets the object for the association that plays role: CREATED_BY. |
void |
setDescription(String a_Description)
Sets the value of the attribute: DESCRIPTION. |
void |
setFormat(DataFormatReference a_Format)
Sets the object for the association that plays role: FORMAT. |
void |
setFormatName(String a_FormatName)
Sets the value of the attribute: FORMAT_NAME. |
void |
setHolderLink(HolderToContent a_HolderLink)
Sets the value of the attribute: HOLDER_LINK. |
void |
setIntentToChange(Boolean a_IntentToChange)
Sets the value of the attribute: INTENT_TO_CHANGE. |
void |
setRole(ContentRoleType a_Role)
Sets the object for the association that plays role: ROLE. |
void |
setStale(boolean a_Stale)
Sets the value of the attribute: STALE. |
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 |
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 |
Methods inherited from interface wt.fc.NetFactor |
getConceptualClassname |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String DESCRIPTION
private static int DESCRIPTION_UPPER_LIMIT
private String description
public static final String INTENT_TO_CHANGE
private Boolean intentToChange
public static final String FORMAT_NAME
public static final String HOLDER_LINK
private HolderToContent holderLink
public static final String STALE
private boolean stale
public static final String CATEGORY
private static int CATEGORY_UPPER_LIMIT
private String category
public static final String CREATED_BY
private WTPrincipalReference createdBy
public static final String FORMAT
private DataFormatReference format
public static final String ROLE
private static int ROLE_UPPER_LIMIT
private ContentRoleType role
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public ContentItem()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class WTObject
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class WTObject
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ContentItem 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 WTObject
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 WTObject
input
-
SQLException
DatastoreException
public String getDescription()
public void setDescription(String a_Description) throws WTPropertyVetoException
a_Description
-
WTPropertyVetoException
private void descriptionValidate(String a_Description) throws WTPropertyVetoException
a_Description
-
WTPropertyVetoException
public Boolean getIntentToChange()
public void setIntentToChange(Boolean a_IntentToChange) throws WTPropertyVetoException
a_IntentToChange
-
WTPropertyVetoException
public String getFormatName()
public void setFormatName(String a_FormatName) throws WTPropertyVetoException
a_FormatName
-
WTPropertyVetoException
public HolderToContent getHolderLink()
public void setHolderLink(HolderToContent a_HolderLink) throws WTPropertyVetoException
a_HolderLink
-
WTPropertyVetoException
public boolean isStale()
public void setStale(boolean a_Stale) throws WTPropertyVetoException
a_Stale
-
WTPropertyVetoException
public String getCategory()
public void setCategory(String a_Category) throws WTPropertyVetoException
a_Category
-
WTPropertyVetoException
private void categoryValidate(String a_Category) throws WTPropertyVetoException
a_Category
-
WTPropertyVetoException
public WTPrincipalReference getCreatedBy()
public void setCreatedBy(WTPrincipalReference a_CreatedBy) throws WTPropertyVetoException
a_CreatedBy
-
WTPropertyVetoException
private void createdByValidate(WTPrincipalReference a_CreatedBy) throws WTPropertyVetoException
a_CreatedBy
-
WTPropertyVetoException
public DataFormatReference getFormat()
public void setFormat(DataFormatReference a_Format) throws WTPropertyVetoException
a_Format
-
WTPropertyVetoException
private void formatValidate(DataFormatReference a_Format) throws WTPropertyVetoException
a_Format
-
WTPropertyVetoException
public ContentRoleType getRole()
public void setRole(ContentRoleType a_Role) throws WTPropertyVetoException
a_Role
-
WTPropertyVetoException
private void roleValidate(ContentRoleType a_Role) throws WTPropertyVetoException
a_Role
-
WTPropertyVetoException
public String getIdentity()
getIdentity
in interface BusinessInformation
getIdentity
in class WTObject
public String getBusinessType()
getBusinessType
in interface BusinessInformation
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 WTObject
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 WTObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |