|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.oasisopen.jdo2.Identifiable
org.w3c.jdo2.AbstractObject
org.opencrx.kernel.document1.jdo2.Document
public class Document
Class Document
| Nested Class Summary | |
|---|---|
static class |
Document.Identity
The object's application identity |
static class |
Document.Slice
Slice object hold the Document's multivalued
attributes |
| Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject |
|---|
org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E> |
| Field Summary | |
|---|---|
static List<String> |
BASE_CLASS
Define this class as base class |
static List<String> |
CLASS
Define the model class org::opencrx::kernel::document1::Document |
| Constructor Summary | |
|---|---|
Document()
|
|
| Method Summary | ||
|---|---|---|
void |
addAttachment(boolean idIsPersistent,
String id,
DocumentAttachment attachment)
Adds the specified element to the set of the values for the reference attachment. |
|
void |
addLink(boolean idIsPersistent,
String id,
DocumentLink link)
Adds the specified element to the set of the values for the reference link. |
|
void |
addLock(boolean idIsPersistent,
String id,
DocumentLock lock)
Adds the specified element to the set of the values for the reference lock. |
|
ModifySecureObjectResult |
addOwningGroup(PrincipalGroup group,
short mode)
|
|
void |
addPropertySet(boolean idIsPersistent,
String id,
PropertySet propertySet)
Adds the specified element to the set of the values for the reference propertySet. |
|
void |
addRevision(boolean idIsPersistent,
String id,
DocumentRevision revision)
Adds the specified element to the set of the values for the reference revision. |
|
void |
addToSegment(Segment segment)
Sets a new value for the reference segment. |
|
void |
addToSegment(Segment segment,
boolean idIsPersistent,
String id)
Set the object's composite association org:opencrx:kernel:document1:SegmentContainsDocument. |
|
CheckPermissionsResult |
checkPermissions(String principalName)
|
|
ExportResult |
exportXml(String attributeFilter,
String referenceFilter)
|
|
org.openmdx.base.cci2.BasicObject |
getAccessGrantedByParent()
Retrieves the value for the reference accessGrantedByParent. |
|
short |
getAccessLevelBrowse()
Retrieves the value for the attribute accessLevelBrowse. |
|
short |
getAccessLevelDelete()
Retrieves the value for the attribute accessLevelDelete. |
|
short |
getAccessLevelUpdate()
Retrieves the value for the attribute accessLevelUpdate. |
|
Date |
getActiveOn()
Retrieves the possibly null value for the optional attribute activeOn. |
|
Date |
getActiveUntil()
Retrieves the possibly null value for the optional attribute activeUntil. |
|
|
getAttachment()
Retrieves a set containing all the elements for the reference attachment. |
|
DocumentAttachment |
getAttachment(boolean idIsPersistent,
String id)
Retrieves the value for the reference attachment for the
specified qualifier attribute value. |
|
|
getAudit()
Retrieves a set containing all the elements for the reference audit. |
|
AuditEntry |
getAudit(boolean idIsPersistent,
String id)
Retrieves the value for the reference audit for the
specified qualifier attribute value. |
|
String |
getAuthor()
Retrieves the possibly null value for the optional attribute author. |
|
String |
getCmsClass()
Retrieves the possibly null value for the optional attribute cmsClass. |
|
String |
getCmsDefaultLanguage()
Retrieves the possibly null value for the optional attribute cmsDefaultLanguage. |
|
String |
getCmsLanguage()
Retrieves the possibly null value for the optional attribute cmsLanguage. |
|
String |
getCmsMeta()
Retrieves the possibly null value for the optional attribute cmsMeta. |
|
String |
getCmsTemplate()
Retrieves the possibly null value for the optional attribute cmsTemplate. |
|
Integer |
getCmsTranslation()
Retrieves the possibly null value for the optional attribute cmsTranslation. |
|
short |
getContentLanguage()
Retrieves the value for the attribute contentLanguage. |
|
Integer |
getContentLength()
Retrieves the possibly null value for the optional attribute contentLength. |
|
String |
getContentType()
Retrieves the possibly null value for the optional attribute contentType. |
|
Date |
getCreatedAt()
Retrieves the value for the attribute createdAt. |
|
Set<String> |
getCreatedBy()
Retrieves a set containing all the elements for the attribute createdBy. |
|
String |
getDescription()
Retrieves the possibly null value for the optional attribute description. |
|
String |
getDocumentAbstract()
Retrieves the possibly null value for the optional attribute documentAbstract. |
|
String |
getDocumentNumber()
Retrieves the possibly null value for the optional attribute documentNumber. |
|
short |
getDocumentState()
Retrieves the value for the attribute documentState. |
|
short |
getDocumentType()
Retrieves the value for the attribute documentType. |
|
|
getFolder()
Retrieves the Collection of objects referenced by
folder. |
|
DocumentRevision |
getHeadRevision()
Retrieves the value for the reference headRevision. |
|
String |
getIdentity()
Retrieves the value for the attribute identity. |
|
|
getIndexEntry()
Retrieves a set containing all the elements for the reference indexEntry. |
|
IndexEntry |
getIndexEntry(boolean idIsPersistent,
String id)
Retrieves the value for the reference indexEntry for the
specified qualifier attribute value. |
|
String |
getKeywords()
Retrieves the possibly null value for the optional attribute keywords. |
|
|
getLink()
Retrieves a set containing all the elements for the reference link. |
|
DocumentLink |
getLink(boolean idIsPersistent,
String id)
Retrieves the value for the reference link for the
specified qualifier attribute value. |
|
short |
getLiteratureType()
Retrieves the value for the attribute literatureType. |
|
String |
getLocation()
Retrieves the possibly null value for the optional attribute location. |
|
|
getLock()
Retrieves a set containing all the elements for the reference lock. |
|
DocumentLock |
getLock(boolean idIsPersistent,
String id)
Retrieves the value for the reference lock for the
specified qualifier attribute value. |
|
Date |
getModifiedAt()
Retrieves the value for the attribute modifiedAt. |
|
Set<String> |
getModifiedBy()
Retrieves a set containing all the elements for the attribute modifiedBy. |
|
String |
getName()
Retrieves the value for the attribute name. |
|
List<String> |
getOwner()
Retrieves a list containing all the elements for the attribute owner. |
|
|
getOwningGroup()
Retrieves the Collection of objects referenced by
owningGroup. |
|
User |
getOwningUser()
Retrieves the value for the reference owningUser. |
|
Document |
getParent()
Retrieves the value for the reference parent. |
|
|
getPropertySet()
Retrieves a set containing all the elements for the reference propertySet. |
|
PropertySet |
getPropertySet(boolean idIsPersistent,
String id)
Retrieves the value for the reference propertySet for the
specified qualifier attribute value. |
|
String |
getQualifiedName()
Retrieves the possibly null value for the optional attribute qualifiedName. |
|
|
getRevision()
Retrieves a set containing all the elements for the reference revision. |
|
DocumentRevision |
getRevision(boolean idIsPersistent,
String id)
Retrieves the value for the reference revision for the
specified qualifier attribute value. |
|
String |
getSearchText()
Retrieves the possibly null value for the optional attribute searchText. |
|
String |
getTitle()
Retrieves the possibly null value for the optional attribute title. |
|
|
getView()
Retrieves a set containing all the elements for the reference view. |
|
org.openmdx.compatibility.view1.cci2.View |
getView(boolean namespaceIsPersistent,
String namespace)
Retrieves the value for the reference view for the
specified qualifier attribute value. |
|
ImportResult |
importItem(byte[] item,
String itemMimeType,
String itemName,
short locale)
|
|
static Document.Identity |
newIdentity(org.openmdx.base.cci2.Segment.Identity segment,
boolean idIsPersistent,
String id)
|
|
protected org.w3c.jdo2.AbstractObject.Slice |
newSlice(int index)
|
|
protected List<String> |
openmdxjdoGetClass()
Retrieve the model class |
|
protected String |
openmdxjdoGetObjectId()
Retrieve the object's JDO identity key |
|
static CloseableCollection<Document> |
openmdxjdoGetObjectsByParent(Segment segment)
Navigate through an object's composite association |
|
protected int |
openmdxjdoGetSize(int field)
|
|
protected
|
openmdxjdoGetSlices()
|
|
protected void |
openmdxjdoSetSize(int field,
int size)
|
|
static Document.Identity |
openmdxjdoToIdentity(org.oasisopen.spi2.ObjectId objectId)
|
|
ModifySecureObjectResult |
removeAllOwningGroup(short mode)
|
|
ModifySecureObjectResult |
removeOwningGroup(PrincipalGroup group,
short mode)
|
|
ModifySecureObjectResult |
setAccessLevel(short accessLevelBrowse,
short accessLevelDelete,
short accessLevelUpdate,
short mode)
|
|
void |
setAccessLevelBrowse(short accessLevelBrowse)
Sets a new value for the attribute accessLevelBrowse. |
|
void |
setAccessLevelDelete(short accessLevelDelete)
Sets a new value for the attribute accessLevelDelete. |
|
void |
setAccessLevelUpdate(short accessLevelUpdate)
Sets a new value for the attribute accessLevelUpdate. |
|
void |
setActiveOn(Date activeOn)
Sets a new value for the attribute activeOn. |
|
void |
setActiveUntil(Date activeUntil)
Sets a new value for the attribute activeUntil. |
|
void |
setAuthor(String author)
Sets a new value for the attribute author. |
|
void |
setCmsClass(String cmsClass)
Sets a new value for the attribute cmsClass. |
|
void |
setCmsDefaultLanguage(String cmsDefaultLanguage)
Sets a new value for the attribute cmsDefaultLanguage. |
|
void |
setCmsLanguage(String cmsLanguage)
Sets a new value for the attribute cmsLanguage. |
|
void |
setCmsMeta(String cmsMeta)
Sets a new value for the attribute cmsMeta. |
|
void |
setCmsTemplate(String cmsTemplate)
Sets a new value for the attribute cmsTemplate. |
|
void |
setCmsTranslation(Integer cmsTranslation)
Sets a new value for the attribute cmsTranslation. |
|
void |
setContentLanguage(short contentLanguage)
Sets a new value for the attribute contentLanguage. |
|
void |
setContentLength(Integer contentLength)
Sets a new value for the attribute contentLength. |
|
void |
setContentType(String contentType)
Sets a new value for the attribute contentType. |
|
void |
setDescription(String description)
Sets a new value for the attribute description. |
|
void |
setDocumentAbstract(String documentAbstract)
Sets a new value for the attribute documentAbstract. |
|
void |
setDocumentNumber(String documentNumber)
Sets a new value for the attribute documentNumber. |
|
void |
setDocumentState(short documentState)
Sets a new value for the attribute documentState. |
|
void |
setDocumentType(short documentType)
Sets a new value for the attribute documentType. |
|
void |
setHeadRevision(DocumentRevision headRevision)
Sets a new value for the reference headRevision. |
|
void |
setKeywords(String keywords)
Sets a new value for the attribute keywords. |
|
void |
setLiteratureType(short literatureType)
Sets a new value for the attribute literatureType. |
|
void |
setLocation(String location)
Sets a new value for the attribute location. |
|
void |
setName(String name)
Sets a new value for the attribute name. |
|
ModifySecureObjectResult |
setOwningUser(short mode,
User user)
|
|
void |
setOwningUser(User owningUser)
Sets a new value for the reference owningUser. |
|
void |
setParent(Document parent)
Sets a new value for the reference parent. |
|
void |
setQualifiedName(String qualifiedName)
Sets a new value for the attribute qualifiedName. |
|
void |
setSearchText(String searchText)
Sets a new value for the attribute searchText. |
|
void |
setTitle(String title)
Sets a new value for the attribute title. |
|
UpdateIndexResult |
updateIndex()
|
|
| Methods inherited from class org.w3c.jdo2.AbstractObject |
|---|
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement |
| Methods inherited from class org.oasisopen.jdo2.Identifiable |
|---|
openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet, openmdxjdoNewObjectId, openmdxjdoNewObjectId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final List<String> CLASS
org::opencrx::kernel::document1::Document
public static final List<String> BASE_CLASS
Document.CLASS| Constructor Detail |
|---|
public Document()
| Method Detail |
|---|
protected String openmdxjdoGetObjectId()
openmdxjdoGetObjectId in class org.oasisopen.jdo2.Identifiableprotected final <E extends org.w3c.jdo2.AbstractObject.Slice> SortedMap<Integer,E> openmdxjdoGetSlices()
openmdxjdoGetSlices in class org.w3c.jdo2.AbstractObjectpublic short getAccessLevelDelete()
accessLevelDelete.
getAccessLevelDelete in interface SecureObjectaccessLevelDelete.public void setAccessLevelDelete(short accessLevelDelete)
accessLevelDelete.
setAccessLevelDelete in interface SecureObjectaccessLevelDelete - The non-null new value for attribute accessLevelDelete.public short getDocumentType()
documentType.
getDocumentType in interface DocumentdocumentType.public void setDocumentType(short documentType)
documentType.
setDocumentType in interface DocumentdocumentType - The non-null new value for attribute documentType.
public ExportResult exportXml(String attributeFilter,
String referenceFilter)
exportXml in interface XmlExporterpublic final String getLocation()
location.
getLocation in interface Documentlocation.public void setLocation(String location)
location.
setLocation in interface Documentlocation - The possibly null new value for attribute location.public final Set<String> getModifiedBy()
modifiedBy.
getModifiedBy in interface org.openmdx.base.cci2.BasicObjectpublic final String getCmsMeta()
cmsMeta.
getCmsMeta in interface DocumentcmsMeta.public void setCmsMeta(String cmsMeta)
cmsMeta.
setCmsMeta in interface DocumentcmsMeta - The possibly null new value for attribute cmsMeta.public final String getContentType()
contentType.
getContentType in interface DocumentcontentType.public void setContentType(String contentType)
contentType.
setContentType in interface DocumentcontentType - The possibly null new value for attribute contentType.public short getAccessLevelBrowse()
accessLevelBrowse.
getAccessLevelBrowse in interface SecureObjectaccessLevelBrowse.public void setAccessLevelBrowse(short accessLevelBrowse)
accessLevelBrowse.
setAccessLevelBrowse in interface SecureObjectaccessLevelBrowse - The non-null new value for attribute accessLevelBrowse.public <T extends DocumentRevision> Collection<T> getRevision()
revision.
getRevision in interface Document
public DocumentRevision getRevision(boolean idIsPersistent,
String id)
revision for the
specified qualifier attribute value.
getRevision in interface DocumentidIsPersistent - Defines whether value for the qualifier is persistent or notid - The value for the qualifier attribute that qualifies this reference.
public void addRevision(boolean idIsPersistent,
String id,
DocumentRevision revision)
revision.
Note: This is an extension to the JMI 1 standard.
addRevision in interface DocumentidIsPersistent - true if id is persistentid - The qualifier attribute value that qualifies the reference to get the element to be appended.revision - The element to be appended.public final String getDescription()
description.
getDescription in interface Documentdescription.public void setDescription(String description)
description.
setDescription in interface Documentdescription - The possibly null new value for attribute description.public ModifySecureObjectResult removeAllOwningGroup(short mode)
removeAllOwningGroup in interface SecureObjectpublic final String getDocumentNumber()
documentNumber.
getDocumentNumber in interface DocumentdocumentNumber.public void setDocumentNumber(String documentNumber)
documentNumber.
setDocumentNumber in interface DocumentdocumentNumber - The possibly null new value for attribute documentNumber.
public ModifySecureObjectResult setOwningUser(short mode,
User user)
setOwningUser in interface SecureObjectpublic final Integer getContentLength()
contentLength.
getContentLength in interface DocumentcontentLength.public void setContentLength(Integer contentLength)
contentLength.
setContentLength in interface DocumentcontentLength - The possibly null new value for attribute contentLength.public <T extends PrincipalGroup> List<T> getOwningGroup()
Collection of objects referenced by
owningGroup.
getOwningGroup in interface SecureObjectCollection of referenced objects.
public ModifySecureObjectResult addOwningGroup(PrincipalGroup group,
short mode)
addOwningGroup in interface SecureObjectpublic final Date getActiveUntil()
activeUntil.
getActiveUntil in interface DocumentactiveUntil.public void setActiveUntil(Date activeUntil)
activeUntil.
setActiveUntil in interface DocumentactiveUntil - The possibly null new value for attribute activeUntil.public final String getKeywords()
keywords.
getKeywords in interface Documentkeywords.public void setKeywords(String keywords)
keywords.
setKeywords in interface Documentkeywords - The possibly null new value for attribute keywords.public Document getParent()
parent.
getParent in interface Documentnull – value for this reference.public void setParent(Document parent)
parent.
setParent in interface Documentparent - The non-null new value for this reference.
public ImportResult importItem(byte[] item,
String itemMimeType,
String itemName,
short locale)
importItem in interface Importer
public ModifySecureObjectResult removeOwningGroup(PrincipalGroup group,
short mode)
removeOwningGroup in interface SecureObjectpublic final String getDocumentAbstract()
documentAbstract.
getDocumentAbstract in interface DocumentdocumentAbstract.public void setDocumentAbstract(String documentAbstract)
documentAbstract.
setDocumentAbstract in interface DocumentdocumentAbstract - The possibly null new value for attribute documentAbstract.public final String getCmsDefaultLanguage()
cmsDefaultLanguage.
getCmsDefaultLanguage in interface DocumentcmsDefaultLanguage.public void setCmsDefaultLanguage(String cmsDefaultLanguage)
cmsDefaultLanguage.
setCmsDefaultLanguage in interface DocumentcmsDefaultLanguage - The possibly null new value for attribute cmsDefaultLanguage.public final String getCmsTemplate()
cmsTemplate.
getCmsTemplate in interface DocumentcmsTemplate.public void setCmsTemplate(String cmsTemplate)
cmsTemplate.
setCmsTemplate in interface DocumentcmsTemplate - The possibly null new value for attribute cmsTemplate.public final Set<String> getCreatedBy()
createdBy.
getCreatedBy in interface org.openmdx.base.cci2.BasicObjectpublic org.openmdx.base.cci2.BasicObject getAccessGrantedByParent()
accessGrantedByParent.
getAccessGrantedByParent in interface SecureObjectnull – value for this reference.
public ModifySecureObjectResult setAccessLevel(short accessLevelBrowse,
short accessLevelDelete,
short accessLevelUpdate,
short mode)
setAccessLevel in interface SecureObjectpublic final List<String> getOwner()
owner.
getOwner in interface SecureObjectpublic <T extends IndexEntry> Collection<T> getIndexEntry()
indexEntry.
getIndexEntry in interface Indexed
public IndexEntry getIndexEntry(boolean idIsPersistent,
String id)
indexEntry for the
specified qualifier attribute value.
getIndexEntry in interface