Class Attachment
- All Implemented Interfaces:
Model
,ModelAttachment
,java.io.Serializable
public class Attachment extends com.onenetwork.platform.common.Model implements java.io.Serializable, ModelAttachment
Java class for Attachment complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Attachment"> <complexContent> <extension base="{http://www.onenetwork.com/Platform}Model"> <sequence> <element name="ActionExecTime" type="{http://www.onenetwork.com/Platform}DateTime" minOccurs="0"/> <element name="ActionName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="InputRefId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="Error" type="{http://www.onenetwork.com/Platform}Error" minOccurs="0"/> <element name="CreationUser" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="CreationDate" type="{http://www.onenetwork.com/Platform}DateTime" minOccurs="0"/> <element name="LastModifiedUser" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="LastModifiedDate" type="{http://www.onenetwork.com/Platform}DateTime" minOccurs="0"/> <element name="ValueChainId" type="{http://www.w3.org/2001/XMLSchema}long"/> <element name="OwnerId" type="{http://www.w3.org/2001/XMLSchema}long"/> <element name="OwnerModelLevel" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="OwnerDisplay" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="EnterpriseName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="Category" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="FileName" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="FilePath" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="Description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="SizeInKb" type="{http://www.onenetwork.com/Platform}NullableDouble" minOccurs="0"/> <element name="StorageEnterpriseName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="DocumentTypeSourceModel" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="DocumentTypeDocumentCategory" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="DocumentTypeName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="DocumentTypeOrganizationName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="DocumentTypeOrganizationEnterpriseName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="Metadata" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="LastDevicePrintDate" type="{http://www.onenetwork.com/Platform}DateTime" minOccurs="0"/> <element name="IsFinal" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="Active" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="DocumentState" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="RejectionCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="RejectionComment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="ApprovedOrRejectedByUserName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="ApprovedOrRejectedByUserEnterpriseName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="DigitalSignatureInfo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="Udfs" type="{http://www.onenetwork.com/Platform}NameValuePairList" minOccurs="0"/> <element name="Issue" type="{http://www.onenetwork.com/Platform}Issue" maxOccurs="unbounded" minOccurs="0"/> <element ref="{http://www.onenetwork.com/Platform}MDFs" maxOccurs="unbounded" minOccurs="0"/> <element name="Attribute" type="{http://www.onenetwork.com/Platform}AttributeValue" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Calendar
actionExecTime
protected java.lang.String
actionName
protected java.lang.Boolean
active
protected java.lang.String
approvedOrRejectedByUserEnterpriseName
protected java.lang.String
approvedOrRejectedByUserName
protected java.util.List<AttributeValue>
attributes
protected java.lang.String
category
protected java.util.Calendar
creationDate
protected java.lang.String
creationUser
protected java.lang.String
description
protected java.lang.String
digitalSignatureInfo
protected java.lang.String
documentState
protected java.lang.String
documentTypeDocumentCategory
protected java.lang.String
documentTypeName
protected java.lang.String
documentTypeOrganizationEnterpriseName
protected java.lang.String
documentTypeOrganizationName
protected java.lang.String
documentTypeSourceModel
protected java.lang.String
enterpriseName
protected StatusMessage
error
protected java.lang.String
fileName
protected java.lang.String
filePath
protected java.lang.String
inputRefId
protected java.lang.Boolean
isFinal
protected java.util.List<Issue>
issues
protected java.util.Calendar
lastDevicePrintDate
protected java.util.Calendar
lastModifiedDate
protected java.lang.String
lastModifiedUser
protected java.util.List<javax.xml.bind.JAXBElement<? extends com.onenetwork.platform.common.MDFs>>
mdFsList
protected java.lang.String
metadata
static com.onenetwork.platform.data.model.impl.ModelLevelType
MODEL_LEVEL_TYPE
Constant reference to the ModelLevelType for this JAXB.static com.onenetwork.platform.data.model.impl.ModelType
MODEL_TYPE
Constant reference to the ModelType for this JAXB.protected java.lang.String
ownerDisplay
protected long
ownerId
protected java.lang.String
ownerModelLevel
protected java.lang.String
rejectionCode
protected java.lang.String
rejectionComment
protected java.lang.Double
sizeInKb
static java.lang.String
STANDARD_MODEL_NAME
Constant reference to the standard model name for this JAXB.protected java.lang.String
storageEnterpriseName
protected java.lang.Long
sysApprovedOrRejectedByUserId
protected java.lang.Long
sysDocumentTypeId
protected java.lang.Long
sysEnterpriseId
protected java.lang.Long
sysStorageEnterpriseId
protected com.onenetwork.platform.common.NameValuePairList
udfs
protected long
valueChainId
-
Constructor Summary
Constructors Constructor Description Attachment()
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
A Model object is considered "equal" to another Model object if it is a Model of the same type and its Natural Key fields are identical.java.util.Calendar
getActionExecTime()
Gets the value of the actionExecTime property.java.lang.String
getActionName()
Gets the value of the actionName property.java.lang.String
getApprovedOrRejectedByUserEnterpriseName()
Gets the value of the approvedOrRejectedByUserEnterpriseName property.java.lang.String
getApprovedOrRejectedByUserName()
Gets the value of the approvedOrRejectedByUserName property.java.util.List<AttributeValue>
getAttributes()
Gets the value of the attributes property.java.lang.String
getCategory()
Gets the value of the category property.java.util.Calendar
getCreationDate()
Gets the value of the creationDate property.java.lang.String
getCreationUser()
Gets the value of the creationUser property.java.lang.String
getDescription()
Gets the value of the description property.java.lang.String
getDigitalSignatureInfo()
Gets the value of the digitalSignatureInfo property.java.lang.String
getDocumentState()
Gets the value of the documentState property.java.lang.String
getDocumentTypeDocumentCategory()
Gets the value of the documentTypeDocumentCategory property.java.lang.String
getDocumentTypeName()
Gets the value of the documentTypeName property.java.lang.String
getDocumentTypeOrganizationEnterpriseName()
Gets the value of the documentTypeOrganizationEnterpriseName property.java.lang.String
getDocumentTypeOrganizationName()
Gets the value of the documentTypeOrganizationName property.java.lang.String
getDocumentTypeSourceModel()
Gets the value of the documentTypeSourceModel property.java.lang.String
getEnterpriseName()
Gets the value of the enterpriseName property.StatusMessage
getError()
Gets the value of the error property.java.lang.String
getFileName()
Gets the value of the fileName property.java.lang.String
getFilePath()
Gets the value of the filePath property.java.lang.String
getInputRefId()
Gets the value of the inputRefId property.java.util.List<Issue>
getIssues()
Gets the value of the issues property.java.util.Calendar
getLastDevicePrintDate()
Gets the value of the lastDevicePrintDate property.java.util.Calendar
getLastModifiedDate()
Gets the value of the lastModifiedDate property.java.lang.String
getLastModifiedUser()
Gets the value of the lastModifiedUser property.java.util.List<javax.xml.bind.JAXBElement<? extends com.onenetwork.platform.common.MDFs>>
getMDFsList()
Gets the value of the mdFsList property.java.lang.String
getMetadata()
Gets the value of the metadata property.com.onenetwork.platform.data.model.impl.ModelLevelType
getModelLevelType()
methods to get ModelLevelType for this JAXB.com.onenetwork.platform.data.model.impl.ModelType
getModelType()
methods to get ModelType for this JAXB.java.lang.String
getOwnerDisplay()
Gets the value of the ownerDisplay property.long
getOwnerId()
Gets the value of the ownerId property.java.lang.String
getOwnerModelLevel()
Gets the value of the ownerModelLevel property.java.lang.String
getRejectionCode()
Gets the value of the rejectionCode property.java.lang.String
getRejectionComment()
Gets the value of the rejectionComment property.double
getSizeInKb()
java.lang.String
getStandardModelName()
method to get standard model name for this JAXB.java.lang.String
getStorageEnterpriseName()
Gets the value of the storageEnterpriseName property.java.lang.Long
getSysApprovedOrRejectedByUserId()
Returns the surrogate id value for SysApprovedOrRejectedByUserId.java.lang.Long
getSysDocumentTypeId()
Returns the surrogate id value for SysDocumentTypeId.java.lang.Long
getSysEnterpriseId()
Returns the surrogate id value for SysEnterpriseId.java.lang.Long
getSysStorageEnterpriseId()
Returns the surrogate id value for SysStorageEnterpriseId.com.onenetwork.platform.common.NameValuePairList
getUdfs()
Gets the value of the udfs property.long
getValueChainId()
Gets the value of the valueChainId property.int
hashCode()
protected java.lang.String
internalToString()
boolean
isActive()
boolean
isIsFinal()
boolean
isMarkedForDelete()
boolean
isSetActionExecTime()
boolean
isSetActionName()
boolean
isSetActive()
boolean
isSetApprovedOrRejectedByUserEnterpriseName()
boolean
isSetApprovedOrRejectedByUserName()
boolean
isSetAttributes()
boolean
isSetCategory()
boolean
isSetCreationDate()
boolean
isSetCreationUser()
boolean
isSetDescription()
boolean
isSetDigitalSignatureInfo()
boolean
isSetDocumentState()
boolean
isSetDocumentTypeDocumentCategory()
boolean
isSetDocumentTypeName()
boolean
isSetDocumentTypeOrganizationEnterpriseName()
boolean
isSetDocumentTypeOrganizationName()
boolean
isSetDocumentTypeSourceModel()
boolean
isSetEnterpriseName()
boolean
isSetError()
boolean
isSetFileName()
boolean
isSetFilePath()
boolean
isSetInputRefId()
boolean
isSetIsFinal()
boolean
isSetIssues()
boolean
isSetLastDevicePrintDate()
boolean
isSetLastModifiedDate()
boolean
isSetLastModifiedUser()
boolean
isSetMDFsList()
boolean
isSetMetadata()
boolean
isSetOwnerDisplay()
boolean
isSetOwnerId()
boolean
isSetOwnerModelLevel()
boolean
isSetRejectionCode()
boolean
isSetRejectionComment()
boolean
isSetSizeInKb()
boolean
isSetStorageEnterpriseName()
boolean
isSetUdfs()
boolean
isSetValueChainId()
com.onenetwork.platform.common.Issue
issueOff(java.lang.String issueName)
Utility method to create an issue and set it on JAXBcom.onenetwork.platform.common.Issue
issueOn(java.lang.String issueName, IssueSeverity issueSeverity)
Utility method to create an issue and set it on JAXBvoid
markForDelete(boolean mark)
Call this method to mark this Attachment for deletion when its parent Model is updated.void
parseFromJson(org.json.JSONObject json)
Converts a Json to an Attachment representation and updates the object itself.(This does not include the payload.)void
populateFromJSON(org.json.JSONObject json)
java.io.InputStream
readPayload()
Returns the InputStream of attachment documentvoid
setActionExecTime(java.util.Calendar value)
Sets the value of the actionExecTime property.void
setActionName(java.lang.String value)
Sets the value of the actionName property.void
setActive(boolean value)
Sets the value of the active property.void
setApprovedOrRejectedByUserEnterpriseName(java.lang.String value)
Sets the value of ApprovedOrRejectedByUserEnterpriseName, and also nullifies the following surrogate ids: SysApprovedOrRejectedByUserId.void
setApprovedOrRejectedByUserName(java.lang.String value)
Sets the value of ApprovedOrRejectedByUserName, and also nullifies the following surrogate ids: SysApprovedOrRejectedByUserId.void
setCategory(java.lang.String value)
Sets the value of the category property.void
setCreationDate(java.util.Calendar value)
Sets the value of the creationDate property.void
setCreationUser(java.lang.String value)
Sets the value of the creationUser property.void
setDescription(java.lang.String value)
Sets the value of the description property.void
setDigitalSignatureInfo(java.lang.String value)
Sets the value of the digitalSignatureInfo property.void
setDocumentState(java.lang.String value)
Sets the value of the documentState property.void
setDocumentTypeDocumentCategory(java.lang.String value)
Sets the value of DocumentTypeDocumentCategory, and also nullifies the following surrogate ids: SysDocumentTypeId.void
setDocumentTypeName(java.lang.String value)
Sets the value of DocumentTypeName, and also nullifies the following surrogate ids: SysDocumentTypeId.void
setDocumentTypeOrganizationEnterpriseName(java.lang.String value)
Sets the value of DocumentTypeOrganizationEnterpriseName, and also nullifies the following surrogate ids: SysDocumentTypeId.void
setDocumentTypeOrganizationName(java.lang.String value)
Sets the value of DocumentTypeOrganizationName, and also nullifies the following surrogate ids: SysDocumentTypeId.void
setDocumentTypeSourceModel(java.lang.String value)
Sets the value of DocumentTypeSourceModel, and also nullifies the following surrogate ids: SysDocumentTypeId.void
setEnterpriseName(java.lang.String value)
Sets the value of EnterpriseName, and also nullifies the following surrogate ids: SysEnterpriseId.void
setError(StatusMessage value)
Sets the value of the error property.void
setFileName(java.lang.String value)
Sets the value of the fileName property.void
setFilePath(java.lang.String value)
Sets the value of the filePath property.void
setInputRefId(java.lang.String value)
Sets the value of the inputRefId property.void
setIsFinal(boolean value)
Sets the value of the isFinal property.void
setLastDevicePrintDate(java.util.Calendar value)
Sets the value of the lastDevicePrintDate property.void
setLastModifiedDate(java.util.Calendar value)
Sets the value of the lastModifiedDate property.void
setLastModifiedUser(java.lang.String value)
Sets the value of the lastModifiedUser property.void
setMetadata(java.lang.String value)
Sets the value of the metadata property.void
setOwnerDisplay(java.lang.String value)
Sets the value of the ownerDisplay property.void
setOwnerId(long value)
Sets the value of the ownerId property.void
setOwnerModelLevel(java.lang.String value)
Sets the value of the ownerModelLevel property.void
setRejectionCode(java.lang.String value)
Sets the value of the rejectionCode property.void
setRejectionComment(java.lang.String value)
Sets the value of the rejectionComment property.void
setSizeInKb(double value)
Sets the value of the sizeInKb property.void
setStorageEnterpriseName(java.lang.String value)
Sets the value of StorageEnterpriseName, and also nullifies the following surrogate ids: SysStorageEnterpriseId.void
setSysApprovedOrRejectedByUserId(java.lang.Long value, boolean nullifyNaturalKeys)
Sets the surrogate id value for SysApprovedOrRejectedByUserId.void
setSysDocumentTypeId(java.lang.Long value, boolean nullifyNaturalKeys)
Sets the surrogate id value for SysDocumentTypeId.void
setSysEnterpriseId(java.lang.Long value, boolean nullifyNaturalKeys)
Sets the surrogate id value for SysEnterpriseId.void
setSysStorageEnterpriseId(java.lang.Long value, boolean nullifyNaturalKeys)
Sets the surrogate id value for SysStorageEnterpriseId.void
setUdfs(com.onenetwork.platform.common.NameValuePairList value)
Sets the value of the udfs property.void
setValueChainId(long value)
Sets the value of the valueChainId property.com.transcendsys.platform.base.dao.AttachmentKey
toDaoKey()
Returns the dao key for this Attachment object.org.json.JSONObject
toJSON()
Returns a JSON representation of this Attachment.org.json.JSONObject
toJSON(PlatformUserProfile profile)
Returns a JSON representation of this Attachment.java.lang.String
toStrContrib()
Not intended for use by Clientsjava.lang.String
toString()
void
unsetActive()
void
unsetAttributes()
void
unsetIsFinal()
void
unsetIssues()
void
unsetMDFsList()
void
unsetSizeInKb()
java.lang.String
writePayload(java.io.InputStream content)
Writes the contents of the attachment and returns the attachment path in document storage.Methods inherited from class com.onenetwork.platform.common.Model
addWarning, copyTransientFields, diff, enableKeyCoordination, fromJSONObject, getAttribute, getAttributeValue, getMDF, getMDFs, getMDFs, getRider, getRider, getRiders, getSysId, getTransientField, getTransientFields, getUdf, getUdfNames, getUdfs, getWarnings, setAttribute, setError, setMDF, setSysId, setTransientField, setUdf, toJSONObject, toJSONObject, toJSONObjectExternal, toJSONObjectFullySerialized, toXML
-
Field Details
-
actionExecTime
protected java.util.Calendar actionExecTime -
actionName
protected java.lang.String actionName -
inputRefId
protected java.lang.String inputRefId -
error
-
creationUser
protected java.lang.String creationUser -
creationDate
protected java.util.Calendar creationDate -
lastModifiedUser
protected java.lang.String lastModifiedUser -
lastModifiedDate
protected java.util.Calendar lastModifiedDate -
valueChainId
protected long valueChainId -
ownerId
protected long ownerId -
ownerModelLevel
protected java.lang.String ownerModelLevel -
ownerDisplay
protected java.lang.String ownerDisplay -
enterpriseName
protected java.lang.String enterpriseName -
category
protected java.lang.String category -
fileName
protected java.lang.String fileName -
filePath
protected java.lang.String filePath -
description
protected java.lang.String description -
sizeInKb
protected java.lang.Double sizeInKb -
storageEnterpriseName
protected java.lang.String storageEnterpriseName -
documentTypeSourceModel
protected java.lang.String documentTypeSourceModel -
documentTypeDocumentCategory
protected java.lang.String documentTypeDocumentCategory -
documentTypeName
protected java.lang.String documentTypeName -
documentTypeOrganizationName
protected java.lang.String documentTypeOrganizationName -
documentTypeOrganizationEnterpriseName
protected java.lang.String documentTypeOrganizationEnterpriseName -
metadata
protected java.lang.String metadata -
lastDevicePrintDate
protected java.util.Calendar lastDevicePrintDate -
isFinal
protected java.lang.Boolean isFinal -
active
protected java.lang.Boolean active -
documentState
protected java.lang.String documentState -
rejectionCode
protected java.lang.String rejectionCode -
rejectionComment
protected java.lang.String rejectionComment -
approvedOrRejectedByUserName
protected java.lang.String approvedOrRejectedByUserName -
approvedOrRejectedByUserEnterpriseName
protected java.lang.String approvedOrRejectedByUserEnterpriseName -
digitalSignatureInfo
protected java.lang.String digitalSignatureInfo -
udfs
protected com.onenetwork.platform.common.NameValuePairList udfs -
issues
-
mdFsList
protected java.util.List<javax.xml.bind.JAXBElement<? extends com.onenetwork.platform.common.MDFs>> mdFsList -
attributes
-
MODEL_TYPE
public static final com.onenetwork.platform.data.model.impl.ModelType MODEL_TYPEConstant reference to the ModelType for this JAXB. -
MODEL_LEVEL_TYPE
public static final com.onenetwork.platform.data.model.impl.ModelLevelType MODEL_LEVEL_TYPEConstant reference to the ModelLevelType for this JAXB. -
STANDARD_MODEL_NAME
public static final java.lang.String STANDARD_MODEL_NAMEConstant reference to the standard model name for this JAXB. -
sysEnterpriseId
protected java.lang.Long sysEnterpriseId -
sysStorageEnterpriseId
protected java.lang.Long sysStorageEnterpriseId -
sysDocumentTypeId
protected java.lang.Long sysDocumentTypeId -
sysApprovedOrRejectedByUserId
protected java.lang.Long sysApprovedOrRejectedByUserId
-
-
Constructor Details
-
Attachment
public Attachment()
-
-
Method Details
-
getActionExecTime
public java.util.Calendar getActionExecTime()Gets the value of the actionExecTime property.- Returns:
- possible object is
String
-
setActionExecTime
public void setActionExecTime(java.util.Calendar value)Sets the value of the actionExecTime property.- Parameters:
value
- allowed object isString
-
isSetActionExecTime
public boolean isSetActionExecTime() -
getActionName
public java.lang.String getActionName()Gets the value of the actionName property.- Overrides:
getActionName
in classcom.onenetwork.platform.common.Model
- Returns:
- possible object is
String
-
setActionName
public void setActionName(java.lang.String value)Sets the value of the actionName property.- Overrides:
setActionName
in classcom.onenetwork.platform.common.Model
- Parameters:
value
- allowed object isString
-
isSetActionName
public boolean isSetActionName() -
getInputRefId
public java.lang.String getInputRefId()Gets the value of the inputRefId property.- Returns:
- possible object is
String
-
setInputRefId
public void setInputRefId(java.lang.String value)Sets the value of the inputRefId property.- Parameters:
value
- allowed object isString
-
isSetInputRefId
public boolean isSetInputRefId() -
getError
Gets the value of the error property. -
setError
Sets the value of the error property. -
isSetError
public boolean isSetError() -
getCreationUser
public java.lang.String getCreationUser()Gets the value of the creationUser property.- Returns:
- possible object is
String
-
setCreationUser
public void setCreationUser(java.lang.String value)Sets the value of the creationUser property.- Parameters:
value
- allowed object isString
-
isSetCreationUser
public boolean isSetCreationUser() -
getCreationDate
public java.util.Calendar getCreationDate()Gets the value of the creationDate property.- Returns:
- possible object is
String
-
setCreationDate
public void setCreationDate(java.util.Calendar value)Sets the value of the creationDate property.- Parameters:
value
- allowed object isString
-
isSetCreationDate
public boolean isSetCreationDate() -
getLastModifiedUser
public java.lang.String getLastModifiedUser()Gets the value of the lastModifiedUser property.- Specified by:
getLastModifiedUser
in interfaceModel
- Overrides:
getLastModifiedUser
in classcom.onenetwork.platform.common.Model
- Returns:
- possible object is
String
-
setLastModifiedUser
public void setLastModifiedUser(java.lang.String value)Sets the value of the lastModifiedUser property.- Specified by:
setLastModifiedUser
in interfaceModel
- Overrides:
setLastModifiedUser
in classcom.onenetwork.platform.common.Model
- Parameters:
value
- allowed object isString
-
isSetLastModifiedUser
public boolean isSetLastModifiedUser() -
getLastModifiedDate
public java.util.Calendar getLastModifiedDate()Gets the value of the lastModifiedDate property.- Specified by:
getLastModifiedDate
in interfaceModel
- Overrides:
getLastModifiedDate
in classcom.onenetwork.platform.common.Model
- Returns:
- possible object is
String
-
setLastModifiedDate
public void setLastModifiedDate(java.util.Calendar value)Sets the value of the lastModifiedDate property.- Specified by:
setLastModifiedDate
in interfaceModel
- Overrides:
setLastModifiedDate
in classcom.onenetwork.platform.common.Model
- Parameters:
value
- allowed object isString
-
isSetLastModifiedDate
public boolean isSetLastModifiedDate() -
getValueChainId
public long getValueChainId()Gets the value of the valueChainId property. -
setValueChainId
public void setValueChainId(long value)Sets the value of the valueChainId property.- Specified by:
setValueChainId
in interfaceModelAttachment
- Parameters:
value
- value chain id of the attachment
-
isSetValueChainId
public boolean isSetValueChainId() -
getOwnerId
public long getOwnerId()Gets the value of the ownerId property. -
setOwnerId
public void setOwnerId(long value)Sets the value of the ownerId property. -
isSetOwnerId
public boolean isSetOwnerId() -
getOwnerModelLevel
public java.lang.String getOwnerModelLevel()Gets the value of the ownerModelLevel property.- Returns:
- possible object is
String
-
setOwnerModelLevel
public void setOwnerModelLevel(java.lang.String value)Sets the value of the ownerModelLevel property.- Parameters:
value
- allowed object isString
-
isSetOwnerModelLevel
public boolean isSetOwnerModelLevel() -
getOwnerDisplay
public java.lang.String getOwnerDisplay()Gets the value of the ownerDisplay property.- Returns:
- possible object is
String
-
setOwnerDisplay
public void setOwnerDisplay(java.lang.String value)Sets the value of the ownerDisplay property.- Parameters:
value
- allowed object isString
-
isSetOwnerDisplay
public boolean isSetOwnerDisplay() -
getEnterpriseName
public java.lang.String getEnterpriseName()Gets the value of the enterpriseName property.- Returns:
- possible object is
String
-
isSetEnterpriseName
public boolean isSetEnterpriseName() -
getCategory
public java.lang.String getCategory()Gets the value of the category property.- Returns:
- possible object is
String
-
setCategory
public void setCategory(java.lang.String value)Sets the value of the category property.- Parameters:
value
- allowed object isString
-
isSetCategory
public boolean isSetCategory() -
getFileName
public java.lang.String getFileName()Gets the value of the fileName property.- Specified by:
getFileName
in interfaceModelAttachment
- Returns:
- possible object is
String
-
setFileName
public void setFileName(java.lang.String value)Sets the value of the fileName property.- Specified by:
setFileName
in interfaceModelAttachment
- Parameters:
value
- allowed object isString
-
isSetFileName
public boolean isSetFileName() -
getFilePath
public java.lang.String getFilePath()Gets the value of the filePath property.- Specified by:
getFilePath
in interfaceModelAttachment
- Returns:
- possible object is
String
-
setFilePath
public void setFilePath(java.lang.String value)Sets the value of the filePath property.- Parameters:
value
- allowed object isString
-
isSetFilePath
public boolean isSetFilePath() -
getDescription
public java.lang.String getDescription()Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
public void setDescription(java.lang.String value)Sets the value of the description property.- Specified by:
setDescription
in interfaceModelAttachment
- Parameters:
value
- allowed object isString
-
isSetDescription
public boolean isSetDescription() -
setSizeInKb
public void setSizeInKb(double value)Sets the value of the sizeInKb property.- Parameters:
value
- allowed object isString
-
isSetSizeInKb
public boolean isSetSizeInKb() -
getStorageEnterpriseName
public java.lang.String getStorageEnterpriseName()Gets the value of the storageEnterpriseName property.- Returns:
- possible object is
String
-
isSetStorageEnterpriseName
public boolean isSetStorageEnterpriseName() -
getDocumentTypeSourceModel
public java.lang.String getDocumentTypeSourceModel()Gets the value of the documentTypeSourceModel property.- Returns:
- possible object is
String
-
isSetDocumentTypeSourceModel
public boolean isSetDocumentTypeSourceModel() -
getDocumentTypeDocumentCategory
public java.lang.String getDocumentTypeDocumentCategory()Gets the value of the documentTypeDocumentCategory property.- Returns:
- possible object is
String
-
isSetDocumentTypeDocumentCategory
public boolean isSetDocumentTypeDocumentCategory() -
getDocumentTypeName
public java.lang.String getDocumentTypeName()Gets the value of the documentTypeName property.- Returns:
- possible object is
String
-
isSetDocumentTypeName
public boolean isSetDocumentTypeName() -
getDocumentTypeOrganizationName
public java.lang.String getDocumentTypeOrganizationName()Gets the value of the documentTypeOrganizationName property.- Returns:
- possible object is
String
-
isSetDocumentTypeOrganizationName
public boolean isSetDocumentTypeOrganizationName() -
getDocumentTypeOrganizationEnterpriseName
public java.lang.String getDocumentTypeOrganizationEnterpriseName()Gets the value of the documentTypeOrganizationEnterpriseName property.- Returns:
- possible object is
String
-
isSetDocumentTypeOrganizationEnterpriseName
public boolean isSetDocumentTypeOrganizationEnterpriseName() -
getMetadata
public java.lang.String getMetadata()Gets the value of the metadata property.- Returns:
- possible object is
String
-
setMetadata
public void setMetadata(java.lang.String value)Sets the value of the metadata property.- Parameters:
value
- allowed object isString
-
isSetMetadata
public boolean isSetMetadata() -
getLastDevicePrintDate
Gets the value of the lastDevicePrintDate property.- Returns:
- possible object is
String
-
setLastDevicePrintDate
Sets the value of the lastDevicePrintDate property.- Parameters:
value
- allowed object isString
-
isSetLastDevicePrintDate
-
setIsFinal
public void setIsFinal(boolean value)Sets the value of the isFinal property.- Parameters:
value
- allowed object isBoolean
-
isSetIsFinal
public boolean isSetIsFinal() -
setActive
public void setActive(boolean value)Sets the value of the active property.- Parameters:
value
- allowed object isBoolean
-
isSetActive
public boolean isSetActive() -
getDocumentState
public java.lang.String getDocumentState()Gets the value of the documentState property.- Returns:
- possible object is
String
-
setDocumentState
public void setDocumentState(java.lang.String value)Sets the value of the documentState property.- Parameters:
value
- allowed object isString
-
isSetDocumentState
public boolean isSetDocumentState() -
getRejectionCode
public java.lang.String getRejectionCode()Gets the value of the rejectionCode property.- Returns:
- possible object is
String
-
setRejectionCode
public void setRejectionCode(java.lang.String value)Sets the value of the rejectionCode property.- Parameters:
value
- allowed object isString
-
isSetRejectionCode
public boolean isSetRejectionCode() -
getRejectionComment
public java.lang.String getRejectionComment()Gets the value of the rejectionComment property.- Returns:
- possible object is
String
-
setRejectionComment
public void setRejectionComment(java.lang.String value)Sets the value of the rejectionComment property.- Parameters:
value
- allowed object isString
-
isSetRejectionComment
public boolean isSetRejectionComment() -
getApprovedOrRejectedByUserName
public java.lang.String getApprovedOrRejectedByUserName()Gets the value of the approvedOrRejectedByUserName property.- Returns:
- possible object is
String
-
isSetApprovedOrRejectedByUserName
public boolean isSetApprovedOrRejectedByUserName() -
getApprovedOrRejectedByUserEnterpriseName
public java.lang.String getApprovedOrRejectedByUserEnterpriseName()Gets the value of the approvedOrRejectedByUserEnterpriseName property.- Returns:
- possible object is
String
-
isSetApprovedOrRejectedByUserEnterpriseName
public boolean isSetApprovedOrRejectedByUserEnterpriseName() -
getDigitalSignatureInfo
public java.lang.String getDigitalSignatureInfo()Gets the value of the digitalSignatureInfo property.- Returns:
- possible object is
String
-
setDigitalSignatureInfo
public void setDigitalSignatureInfo(java.lang.String value)Sets the value of the digitalSignatureInfo property.- Parameters:
value
- allowed object isString
-
isSetDigitalSignatureInfo
public boolean isSetDigitalSignatureInfo() -
getUdfs
public com.onenetwork.platform.common.NameValuePairList getUdfs()Gets the value of the udfs property.- Overrides:
getUdfs
in classcom.onenetwork.platform.common.Model
- Returns:
- possible object is
NameValuePairList
-
setUdfs
public void setUdfs(com.onenetwork.platform.common.NameValuePairList value)Sets the value of the udfs property.- Overrides:
setUdfs
in classcom.onenetwork.platform.common.Model
- Parameters:
value
- allowed object isNameValuePairList
-
isSetUdfs
public boolean isSetUdfs()- Overrides:
isSetUdfs
in classcom.onenetwork.platform.common.Model
-
getIssues
Gets the value of the issues property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the issues property.For example, to add a new item, do as follows:
getIssues().add(newItem);
Objects of the following type(s) are allowed in the list
Issue
-
isSetIssues
public boolean isSetIssues() -
unsetIssues
public void unsetIssues() -
getMDFsList
public java.util.List<javax.xml.bind.JAXBElement<? extends com.onenetwork.platform.common.MDFs>> getMDFsList()Gets the value of the mdFsList property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the mdFsList property.For example, to add a new item, do as follows:
getMDFsList().add(newItem);
Objects of the following type(s) are allowed in the list
JAXBElement
<
DummyMDFs
>
JAXBElement
<
MDFs
>
- Overrides:
getMDFsList
in classcom.onenetwork.platform.common.Model
-
isSetMDFsList
public boolean isSetMDFsList() -
unsetMDFsList
public void unsetMDFsList() -
getAttributes
Gets the value of the attributes property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the attributes property.For example, to add a new item, do as follows:
getAttributes().add(newItem);
Objects of the following type(s) are allowed in the list
AttributeValue
- Overrides:
getAttributes
in classcom.onenetwork.platform.common.Model
-
isSetAttributes
public boolean isSetAttributes() -
unsetAttributes
public void unsetAttributes() -
setEnterpriseName
public void setEnterpriseName(java.lang.String value)Sets the value of EnterpriseName, and also nullifies the following surrogate ids: SysEnterpriseId. This nullification is done to ensure that a client can set either natural keys or sys id as desired. If you as a client wish to populate *both* natural and surrogate ids, you should set the natural keys first, then set the surrogate ids passing 'false' as the second parameter- Specified by:
setEnterpriseName
in interfaceModelAttachment
- Parameters:
value
- new value for EnterpriseName - the following will also be nullified: SysEnterpriseId
-
setStorageEnterpriseName
public void setStorageEnterpriseName(java.lang.String value)Sets the value of StorageEnterpriseName, and also nullifies the following surrogate ids: SysStorageEnterpriseId. This nullification is done to ensure that a client can set either natural keys or sys id as desired. If you as a client wish to populate *both* natural and surrogate ids, you should set the natural keys first, then set the surrogate ids passing 'false' as the second parameter- Parameters:
value
- new value for StorageEnterpriseName - the following will also be nullified: SysStorageEnterpriseId
-
setDocumentTypeSourceModel
public void setDocumentTypeSourceModel(java.lang.String value)Sets the value of DocumentTypeSourceModel, and also nullifies the following surrogate ids: SysDocumentTypeId. This nullification is done to ensure that a client can set either natural keys or sys id as desired. If you as a client wish to populate *both* natural and surrogate ids, you should set the natural keys first, then set the surrogate ids passing 'false' as the second parameter- Parameters:
value
- new value for DocumentTypeSourceModel - the following will also be nullified: SysDocumentTypeId
-
setDocumentTypeDocumentCategory
public void setDocumentTypeDocumentCategory(java.lang.String value)Sets the value of DocumentTypeDocumentCategory, and also nullifies the following surrogate ids: SysDocumentTypeId. This nullification is done to ensure that a client can set either natural keys or sys id as desired. If you as a client wish to populate *both* natural and surrogate ids, you should set the natural keys first, then set the surrogate ids passing 'false' as the second parameter- Parameters:
value
- new value for DocumentTypeDocumentCategory - the following will also be nullified: SysDocumentTypeId
-
setDocumentTypeName
public void setDocumentTypeName(java.lang.String value)Sets the value of DocumentTypeName, and also nullifies the following surrogate ids: SysDocumentTypeId. This nullification is done to ensure that a client can set either natural keys or sys id as desired. If you as a client wish to populate *both* natural and surrogate ids, you should set the natural keys first, then set the surrogate ids passing 'false' as the second parameter- Parameters:
value
- new value for DocumentTypeName - the following will also be nullified: SysDocumentTypeId
-
setDocumentTypeOrganizationName
public void setDocumentTypeOrganizationName(java.lang.String value)Sets the value of DocumentTypeOrganizationName, and also nullifies the following surrogate ids: SysDocumentTypeId. This nullification is done to ensure that a client can set either natural keys or sys id as desired. If you as a client wish to populate *both* natural and surrogate ids, you should set the natural keys first, then set the surrogate ids passing 'false' as the second parameter- Parameters:
value
- new value for DocumentTypeOrganizationName - the following will also be nullified: SysDocumentTypeId
-
setDocumentTypeOrganizationEnterpriseName
public void setDocumentTypeOrganizationEnterpriseName(java.lang.String value)Sets the value of DocumentTypeOrganizationEnterpriseName, and also nullifies the following surrogate ids: SysDocumentTypeId. This nullification is done to ensure that a client can set either natural keys or sys id as desired. If you as a client wish to populate *both* natural and surrogate ids, you should set the natural keys first, then set the surrogate ids passing 'false' as the second parameter- Parameters:
value
- new value for DocumentTypeOrganizationEnterpriseName - the following will also be nullified: SysDocumentTypeId
-
setApprovedOrRejectedByUserName
public void setApprovedOrRejectedByUserName(java.lang.String value)Sets the value of ApprovedOrRejectedByUserName, and also nullifies the following surrogate ids: SysApprovedOrRejectedByUserId. This nullification is done to ensure that a client can set either natural keys or sys id as desired. If you as a client wish to populate *both* natural and surrogate ids, you should set the natural keys first, then set the surrogate ids passing 'false' as the second parameter- Parameters:
value
- new value for ApprovedOrRejectedByUserName - the following will also be nullified: SysApprovedOrRejectedByUserId
-
setApprovedOrRejectedByUserEnterpriseName
public void setApprovedOrRejectedByUserEnterpriseName(java.lang.String value)Sets the value of ApprovedOrRejectedByUserEnterpriseName, and also nullifies the following surrogate ids: SysApprovedOrRejectedByUserId. This nullification is done to ensure that a client can set either natural keys or sys id as desired. If you as a client wish to populate *both* natural and surrogate ids, you should set the natural keys first, then set the surrogate ids passing 'false' as the second parameter- Parameters:
value
- new value for ApprovedOrRejectedByUserEnterpriseName - the following will also be nullified: SysApprovedOrRejectedByUserId
-
getSizeInKb
public double getSizeInKb() -
unsetSizeInKb
public void unsetSizeInKb() -
isIsFinal
public boolean isIsFinal() -
unsetIsFinal
public void unsetIsFinal() -
isActive
public boolean isActive() -
unsetActive
public void unsetActive() -
issueOn
public com.onenetwork.platform.common.Issue issueOn(java.lang.String issueName, IssueSeverity issueSeverity)Utility method to create an issue and set it on JAXB -
issueOff
public com.onenetwork.platform.common.Issue issueOff(java.lang.String issueName)Utility method to create an issue and set it on JAXB -
equals
public boolean equals(java.lang.Object obj)Description copied from interface:Model
A Model object is considered "equal" to another Model object if it is a Model of the same type and its Natural Key fields are identical. -
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
internalToString
protected java.lang.String internalToString()- Overrides:
internalToString
in classcom.onenetwork.platform.common.Model
-
toStrContrib
public java.lang.String toStrContrib()Not intended for use by Clients -
getModelType
public com.onenetwork.platform.data.model.impl.ModelType getModelType()methods to get ModelType for this JAXB.- Overrides:
getModelType
in classcom.onenetwork.platform.common.Model
-
getModelLevelType
public com.onenetwork.platform.data.model.impl.ModelLevelType getModelLevelType()methods to get ModelLevelType for this JAXB.- Overrides:
getModelLevelType
in classcom.onenetwork.platform.common.Model
-
getStandardModelName
public java.lang.String getStandardModelName()method to get standard model name for this JAXB.- Overrides:
getStandardModelName
in classcom.onenetwork.platform.common.Model
-
getSysEnterpriseId
public java.lang.Long getSysEnterpriseId()Returns the surrogate id value for SysEnterpriseId. After reading a model, this will always match with the corresponding natural keys, which are: enterpriseName -
setSysEnterpriseId
public void setSysEnterpriseId(java.lang.Long value, boolean nullifyNaturalKeys)Sets the surrogate id value for SysEnterpriseId. As a client, when you want to update the model in the database, you may set values either by natural key or by sys id, or by both. Calling this method with 'true' will nullify the natural keys for this surrogate key: enterpriseName. This ensures the values don't conflict. If you are 'populating' an object and want to set both natural and surrogate keys, you should set the natural keys first, then call this method with 'false' for nullifyNaturalKeys.- Parameters:
value
- new value for SysEnterpriseIdnullifyNaturalKeys
- true to nullify the related natural keys (enterpriseName), or false to leave as is - please note that you can pass either surrogate id or natural keys to the server write API, or both
-
getSysStorageEnterpriseId
public java.lang.Long getSysStorageEnterpriseId()Returns the surrogate id value for SysStorageEnterpriseId. After reading a model, this will always match with the corresponding natural keys, which are: storageEnterpriseName -
setSysStorageEnterpriseId
public void setSysStorageEnterpriseId(java.lang.Long value, boolean nullifyNaturalKeys)Sets the surrogate id value for SysStorageEnterpriseId. As a client, when you want to update the model in the database, you may set values either by natural key or by sys id, or by both. Calling this method with 'true' will nullify the natural keys for this surrogate key: storageEnterpriseName. This ensures the values don't conflict. If you are 'populating' an object and want to set both natural and surrogate keys, you should set the natural keys first, then call this method with 'false' for nullifyNaturalKeys.- Parameters:
value
- new value for SysStorageEnterpriseIdnullifyNaturalKeys
- true to nullify the related natural keys (storageEnterpriseName), or false to leave as is - please note that you can pass either surrogate id or natural keys to the server write API, or both
-
getSysDocumentTypeId
public java.lang.Long getSysDocumentTypeId()Returns the surrogate id value for SysDocumentTypeId. After reading a model, this will always match with the corresponding natural keys, which are: documentTypeSourceModel, documentTypeDocumentCategory, documentTypeName, documentTypeOrganizationName, documentTypeOrganizationEnterpriseName -
setSysDocumentTypeId
public void setSysDocumentTypeId(java.lang.Long value, boolean nullifyNaturalKeys)Sets the surrogate id value for SysDocumentTypeId. As a client, when you want to update the model in the database, you may set values either by natural key or by sys id, or by both. Calling this method with 'true' will nullify the natural keys for this surrogate key: documentTypeSourceModel, documentTypeDocumentCategory, documentTypeName, documentTypeOrganizationName, documentTypeOrganizationEnterpriseName. This ensures the values don't conflict. If you are 'populating' an object and want to set both natural and surrogate keys, you should set the natural keys first, then call this method with 'false' for nullifyNaturalKeys.- Parameters:
value
- new value for SysDocumentTypeIdnullifyNaturalKeys
- true to nullify the related natural keys (documentTypeSourceModel, documentTypeDocumentCategory, documentTypeName, documentTypeOrganizationName, documentTypeOrganizationEnterpriseName), or false to leave as is - please note that you can pass either surrogate id or natural keys to the server write API, or both
-
getSysApprovedOrRejectedByUserId
public java.lang.Long getSysApprovedOrRejectedByUserId()Returns the surrogate id value for SysApprovedOrRejectedByUserId. After reading a model, this will always match with the corresponding natural keys, which are: approvedOrRejectedByUserName, approvedOrRejectedByUserEnterpriseName -
setSysApprovedOrRejectedByUserId
public void setSysApprovedOrRejectedByUserId(java.lang.Long value, boolean nullifyNaturalKeys)Sets the surrogate id value for SysApprovedOrRejectedByUserId. As a client, when you want to update the model in the database, you may set values either by natural key or by sys id, or by both. Calling this method with 'true' will nullify the natural keys for this surrogate key: approvedOrRejectedByUserName, approvedOrRejectedByUserEnterpriseName. This ensures the values don't conflict. If you are 'populating' an object and want to set both natural and surrogate keys, you should set the natural keys first, then call this method with 'false' for nullifyNaturalKeys.- Parameters:
value
- new value for SysApprovedOrRejectedByUserIdnullifyNaturalKeys
- true to nullify the related natural keys (approvedOrRejectedByUserName, approvedOrRejectedByUserEnterpriseName), or false to leave as is - please note that you can pass either surrogate id or natural keys to the server write API, or both
-
markForDelete
public void markForDelete(boolean mark)Call this method to mark this Attachment for deletion when its parent Model is updated. This method applies only to Attachments which are being handled in the context of a parent model's Attachment field, and not when dealing with Attachments as first-class models. The parent model's action must have the Attachments field associated with this Attachment flagged as OPTIONAL in the write mask.- Specified by:
markForDelete
in interfaceModelAttachment
- Parameters:
mark
- true to mark for deletion, false to un-mark (i.e. do not delete)
-
isMarkedForDelete
public boolean isMarkedForDelete()- Returns:
- true iff this Attachement should be deleted when its parent
Model is updated; see
markForDelete(boolean)
-
toString
public java.lang.String toString()- Overrides:
toString
in classcom.onenetwork.platform.common.Model
-
toJSON
public org.json.JSONObject toJSON()Description copied from interface:ModelAttachment
Returns a JSON representation of this Attachment. (This does not include the payload.)- Specified by:
toJSON
in interfaceModelAttachment
-
toJSON
Description copied from interface:ModelAttachment
Returns a JSON representation of this Attachment. Will consult the given user profile for Date and other localized formats.- Specified by:
toJSON
in interfaceModelAttachment
- Parameters:
profile
- user profile, from which localized date format and other information is taken
-
populateFromJSON
public void populateFromJSON(org.json.JSONObject json) -
parseFromJson
public void parseFromJson(org.json.JSONObject json)Description copied from interface:ModelAttachment
Converts a Json to an Attachment representation and updates the object itself.(This does not include the payload.)- Specified by:
parseFromJson
in interfaceModelAttachment
- Parameters:
json
- json object
-
readPayload
public java.io.InputStream readPayload()Description copied from interface:ModelAttachment
Returns the InputStream of attachment document- Specified by:
readPayload
in interfaceModelAttachment
-
writePayload
public java.lang.String writePayload(java.io.InputStream content)Description copied from interface:ModelAttachment
Writes the contents of the attachment and returns the attachment path in document storage.- Specified by:
writePayload
in interfaceModelAttachment
-
toDaoKey
public com.transcendsys.platform.base.dao.AttachmentKey toDaoKey()Returns the dao key for this Attachment object.
-