public abstract class WGSchemaDocument extends WGDesignDocument
WGDocument.Cache, WGDocument.FakeMetaDataContext, WGDocument.SaveAction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTDATA_SCHEMADEFINITION |
META_DESCRIPTION, META_DESIGNREFERENCE, META_NAME, META_VARIANT, METAINFO_DESCRIPTION, METAINFO_DESIGNREFERENCE, METAINFO_NAME, METAINFO_VARIANT
CSFEATURE_EXTDATA, DERIVATE_NAME_PATTERN, DOCKEY_DIVIDER, EXT_PRIMARY_ATTACHMENT, EXTDATA_META_PREFIX, META_CREATED, META_LASTMODIFIED, META_PASTAUTHORS, META_PASTEDITDATES, META_REVISION, METAINFO_CREATED, METAINFO_LASTMODIFIED, METAINFO_PASTAUTHORS, METAINFO_PASTEDITDATES, METAINFO_REVISION, NOONE_ALLOWED, PAGERESTRICTION_ANY, PAGERESTRICTION_FIXEDTYPES, PAGERESTRICTION_NONE, PAGERESTRICTION_UNSPECIFIED, TYPE_ACLENTRY, TYPE_AREA, TYPE_CONTENT, TYPE_CONTENTTYPE, TYPE_CSSJS, TYPE_DBMETADATA, TYPE_FILECONTAINER, TYPE_FILEDERIVATE, TYPE_LANGUAGE, TYPE_STRUCTENTRY, TYPE_TML, TYPE_USERPROFILE, TYPENAME_ACLENTRY, TYPENAME_AREA, TYPENAME_CONTENT, TYPENAME_CONTENTTYPE, TYPENAME_CSSJS, TYPENAME_DBMETADATA, TYPENAME_FILECONTAINER, TYPENAME_FILEDERIVATE, TYPENAME_LANGUAGE, TYPENAME_STRUCTENTRY, TYPENAME_TML, TYPENAME_USERPROFILE
Constructor and Description |
---|
WGSchemaDocument(WGDatabase db,
WGDocumentCore doc,
de.innovationgate.webgate.api.WGDocumentObjectFlags flags) |
Modifier and Type | Method and Description |
---|---|
WGSchemaDocumentDefinition |
createSchemaDefinition()
Creates a schema definition predefining all the metadata currently on this document
|
WGSchemaDocumentDefinition |
getSchemaDefinition()
Returns the schema definition for this document, if available.
|
boolean |
isMetaDeterminedInSchema(java.lang.String name)
Returns if the data of the given metadata field is served from schema definition rather than from the database document
|
void |
performSaveCheck()
Performs a validation for saving the document at the current state, just like it actually was saved.
|
boolean |
setMetaData(java.lang.String strName,
java.lang.Object value)
Sets a meta data of this document.
|
buildDesignDocumentKey, createClone, createClone, getDescription, getDesignReference, getMediaKey, getName, getParentLockable, isVariant, mayEditDocument, rename, rename, retrieveCore, setDescription
afterSave, attachAllFiles, attachAllFiles, attachFile, attachFile, attachFile, attachFileWithoutAnnotation, attachFileWithoutAnnotation, autoSave, buildDocumentKey, createFileDerivate, createFileDerivate, docTypeClassToNumber, doctypeNameToNumber, doctypeNumberToClass, doctypeNumberToName, dropCache, dropCore, equals, evaluateExpression, getCore, getCoreRetrieved, getCreated, getDatabase, getDocumentKey, getDocumentKeyObj, getExpectedMetaClass, getExtdataMetaName, getExtensionData, getExtensionDataNames, getFileData, getFileDerivateData, getFileDerivateMetaData, getFileDerivates, getFileLastModified, getFileMetaData, getFileMimeType, getFileMimeTypes, getFileNames, getFileParent, getFileSize, getFileText, getFileText, getItemDate, getItemNames, getItemNumber, getItemText, getItemValue, getItemValueList, getLastModified, getLastUpdates, getLockStatus, getLockStatus, getMetaData, getMetaDataList, getMetaInfo, getMetaInfoByType, getMetaNames, getName, getNativeObject, getObjectCreated, getPastAuthors, getPastEditDates, getPersistentStore, getPrimaryFileName, getRevision, getType, hasFile, hasFileMetadata, hashCode, hasItem, innerAttachFile, isCachingEnabled, isCoreRetrieved, isDeleted, isDeleted, isDummy, isEdited, isListMeta, isSaved, isTemporary, lock, lock, markEdited, markMetaDataModified, mayPushExtData, mayRemove, mayRemove, maySave, performRemoveCheck, performRemoveCheck, pushData, remove, removeAllExtensionData, removeAllFiles, removeAllItems, removeExtensionData, removeFile, removeFileDerivate, removeItem, renameFile, resultIsFalse, resultIsTrue, save, save, saveQuiet, saveWithGivenTimestamps, setCachingEnabled, setItem, setItems, setItemValue, setMeta, setMetas, setMetaToDefault, setPrimaryFileName, setValues, unlock, unlock, validateMetas, validateMetas, writeExtensionData, writeFileDerivateMetaData
getClass, notify, notifyAll, toString, wait, wait, wait
getChildNodeIterator, getChildNodes, getChildNodeType, getNodeKey, getNodeTitle, getParentNode
public static final java.lang.String EXTDATA_SCHEMADEFINITION
public WGSchemaDocument(WGDatabase db, WGDocumentCore doc, de.innovationgate.webgate.api.WGDocumentObjectFlags flags) throws WGAPIException
WGAPIException
public WGSchemaDocumentDefinition getSchemaDefinition() throws WGAPIException
WGAPIException
public boolean isMetaDeterminedInSchema(java.lang.String name) throws WGAPIException
name
- Name of the metadata field to testWGAPIException
public void performSaveCheck() throws ResourceIsLockedException, WGAPIException
WGDocument
WGAuthorisationException
is thrown.
For checking saving permissions without catching an exception see WGDocument.maySave()
.performSaveCheck
in class WGDocument
WGAPIException
ResourceIsLockedException
public WGSchemaDocumentDefinition createSchemaDefinition() throws WGAPIException
WGAPIException
public boolean setMetaData(java.lang.String strName, java.lang.Object value) throws WGAPIException
WGDocument
setMetaData
in class WGDocument
strName
- Name of the meta data. Use constants META_... of WGDocument
and all descendant objects.value
- Value to set this metadataWGAPIException