public abstract class WGDesignDocument extends WGDocument implements PageHierarchyNode
WGDocument.Cache, WGDocument.FakeMetaDataContext, WGDocument.SaveAction| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
META_DESCRIPTION |
static java.lang.String |
META_DESIGNREFERENCE |
static java.lang.String |
META_NAME |
static java.lang.String |
META_VARIANT |
static MetaInfo |
METAINFO_DESCRIPTION |
static MetaInfo |
METAINFO_DESIGNREFERENCE |
static MetaInfo |
METAINFO_NAME |
static MetaInfo |
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 |
|---|
WGDesignDocument(WGDatabase db,
WGDocumentCore doc,
de.innovationgate.webgate.api.WGDocumentObjectFlags flags)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
buildDesignDocumentKey(int type,
java.lang.String name,
java.lang.String mediaKey)
Builds a document key for a design document by the given data.
|
abstract WGDocument |
createClone(WGDatabase db)
Creates a clone of this design document in another database
|
WGDocument |
createClone(WGDatabase db,
WGDocument ref)
Creates a clone of this document in another database
|
java.lang.String |
getDescription()
Returns the description of this design document
|
de.innovationgate.wga.config.DesignReference |
getDesignReference()
Returns a design reference object that uniquely identifies the location of this design
|
java.lang.String |
getMediaKey()
The media key of this design document, if any.
|
abstract java.lang.String |
getName()
The name of the design document
|
Lockable |
getParentLockable()
returns the parent lockable of this lockable for e.g.
|
boolean |
isVariant()
Identifies this design document as a variant, i.e. a design from a design provider that may return different data for different databases.
|
boolean |
mayEditDocument()
Deprecated.
|
void |
rename(java.lang.String name)
Tries to rename the design document.
|
void |
rename(java.lang.String name,
java.lang.String mediaKey)
Tries to rename the design document.
|
WGDocumentCore |
retrieveCore()
(Re-)Retrieves the core object for this document.
|
boolean |
setDescription(java.lang.String desc)
Sets a description
|
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, mayRemove, mayRemove, maySave, performRemoveCheck, performRemoveCheck, performSaveCheck, pushData, remove, removeAllExtensionData, removeAllFiles, removeAllItems, removeExtensionData, removeFile, removeFileDerivate, removeItem, renameFile, resultIsFalse, resultIsTrue, save, save, saveQuiet, saveWithGivenTimestamps, setCachingEnabled, setItem, setItems, setItemValue, setMeta, setMetaData, setMetas, setMetaToDefault, setPrimaryFileName, setValues, unlock, unlock, validateMetas, validateMetas, writeExtensionData, writeFileDerivateMetaDatagetClass, notify, notifyAll, toString, wait, wait, waitgetChildNodeIterator, getChildNodes, getChildNodeType, getNodeKey, getNodeTitle, getParentNodepublic static final java.lang.String META_NAME
public static final MetaInfo METAINFO_NAME
public static final java.lang.String META_VARIANT
public static final MetaInfo METAINFO_VARIANT
public static final java.lang.String META_DESCRIPTION
public static final MetaInfo METAINFO_DESCRIPTION
public static final java.lang.String META_DESIGNREFERENCE
public static final MetaInfo METAINFO_DESIGNREFERENCE
public WGDesignDocument(WGDatabase db, WGDocumentCore doc, de.innovationgate.webgate.api.WGDocumentObjectFlags flags) throws WGAPIException
db - doc - WGAPIExceptionpublic static java.lang.String buildDesignDocumentKey(int type,
java.lang.String name,
java.lang.String mediaKey)
type - Type of the design documentname - Name of the design documentmediaKey - Media key of the design document, if anypublic java.lang.String getMediaKey()
throws WGAPIException
WGAPIExceptionpublic abstract java.lang.String getName()
throws WGAPIException
WGAPIExceptionpublic java.lang.String getDescription()
throws WGAPIException
WGAPIExceptionpublic boolean setDescription(java.lang.String desc)
throws WGAPIException
desc - WGAPIExceptionpublic WGDocumentCore retrieveCore() throws WGAPIException
WGDocumentWGAPIExceptionpublic boolean mayEditDocument()
WGDocument.maySave()public void rename(java.lang.String name,
java.lang.String mediaKey)
throws WGAPIException
name - The new name.mediaKey - The new media key.WGAPIExceptionpublic void rename(java.lang.String name)
throws WGAPIException
name - The new nameWGAPIExceptionpublic WGDocument createClone(WGDatabase db, WGDocument ref) throws WGAPIException
WGDocumentcreateClone in class WGDocumentdb - The target databaseref - A reference document in the target database. For struct
entries, this is the parent entry in the target db. For
contents this is the struct entry in the target db.WGAPIExceptionpublic abstract WGDocument createClone(WGDatabase db) throws WGAPIException
db - Target databaseWGAPIExceptionpublic Lockable getParentLockable()
LockablegetParentLockable in interface LockablegetParentLockable in class WGDocumentpublic boolean isVariant()
throws WGAPIException
WGAPIExceptionpublic de.innovationgate.wga.config.DesignReference getDesignReference()
throws WGAPIException
WGAPIException