public class WGTMLModule extends WGDesignResourceDocument implements PageHierarchyNode
WGDocument.Cache, WGDocument.FakeMetaDataContext, WGDocument.SaveAction| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
META_CACHEABLE |
static java.lang.String |
META_CODE |
static java.lang.String |
META_CODEOFFSET |
static java.lang.String |
META_DIRECTACCESS |
static java.lang.String |
META_MEDIAKEY |
static MetaInfo |
METAINFO_CACHEABLE |
static MetaInfo |
METAINFO_CODE |
static MetaInfo |
METAINFO_CODEOFFSET |
static MetaInfo |
METAINFO_DIRECTACCESS |
static MetaInfo |
METAINFO_MEDIAKEY |
META_SOURCEFILENAME, METAINFO_SOURCEFILENAMEMETA_DESCRIPTION, META_DESIGNREFERENCE, META_NAME, META_VARIANT, METAINFO_DESCRIPTION, METAINFO_DESIGNREFERENCE, METAINFO_NAME, METAINFO_VARIANTCSFEATURE_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 |
|---|
WGTMLModule(WGDatabase db,
WGDocumentCore doc,
de.innovationgate.webgate.api.WGDocumentObjectFlags flags)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
WGDocument |
createClone(WGDatabase db)
Creates a clone of this design document in another database
|
static java.lang.String |
createDeploymentKey(java.lang.String dbKey,
java.lang.String moduleName,
java.lang.String mediaKey)
Creates a key, unique for one tml module, to be used when deploying it as JSP
|
void |
dropCache()
Drops the cache of this document.
|
de.innovationgate.utils.SkippingIterator<? extends PageHierarchyNode> |
getChildNodeIterator(int pageSize)
Returns an iterator for the child nodes of this hierarchy node
|
java.util.List<PageHierarchyNode> |
getChildNodes()
Returns the child nodes of this hierarchy node
|
java.lang.Class |
getChildNodeType()
Return the class type of child nodes
|
java.lang.String |
getCode()
returns the WebTML-Code
|
int |
getCodeOffset()
Returns the line number that the first line of code in this module had in its source medium.
|
java.lang.String |
getMediaKey()
Returns the media key of this module.
|
java.lang.String |
getName()
Returns the name of this TML module.
|
java.lang.String |
getNodeKey()
Returns a string key for the node that is unique among all keys of PageHierarchyNodes in this database.
|
java.lang.String |
getNodeTitle(java.lang.String language)
Returns the display title for the node.
|
PageHierarchyNode |
getParentNode()
Return the parent of this node in hierarchy.
|
int |
getType()
Returns the type of this document as constant WGDocument.TYPE_...
|
boolean |
isCacheable()
Returns if this TML modules results should be browser-cacheable
|
boolean |
isDirectAccessAllowed()
Returns if this module should be directly accessible via URL
|
void |
performSaveCheck()
Performs a validation for saving the document at the current state, just like it actually was saved.
|
void |
pushData(WGDocument doc)
Pushed the data of this document to another document of the same type.
|
boolean |
setCacheable(boolean cacheable)
Sets if the result of this modules code should be browser-cacheable
|
boolean |
setCode(java.lang.String code)
Sets the WebTML-Code for this module
|
boolean |
setDirectAccessAllowed(boolean value)
Sets if this module should be directly accessible via URL
|
getSourceFileNamebuildDesignDocumentKey, createClone, getDescription, getDesignReference, getParentLockable, isVariant, mayEditDocument, rename, rename, retrieveCore, setDescriptionafterSave, attachAllFiles, attachAllFiles, attachFile, attachFile, attachFile, attachFileWithoutAnnotation, attachFileWithoutAnnotation, autoSave, buildDocumentKey, createFileDerivate, createFileDerivate, docTypeClassToNumber, doctypeNameToNumber, doctypeNumberToClass, doctypeNumberToName, 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, hasFile, hasFileMetadata, hashCode, hasItem, innerAttachFile, isCachingEnabled, isCoreRetrieved, isDeleted, isDeleted, isDummy, isEdited, isListMeta, isSaved, isTemporary, lock, lock, markEdited, markMetaDataModified, mayRemove, mayRemove, maySave, performRemoveCheck, performRemoveCheck, 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, writeFileDerivateMetaDatapublic static final java.lang.String META_CODE
public static final MetaInfo METAINFO_CODE
public static final java.lang.String META_MEDIAKEY
public static final MetaInfo METAINFO_MEDIAKEY
public static final java.lang.String META_DIRECTACCESS
public static final MetaInfo METAINFO_DIRECTACCESS
public static final java.lang.String META_CACHEABLE
public static final MetaInfo METAINFO_CACHEABLE
public static final java.lang.String META_CODEOFFSET
public static final MetaInfo METAINFO_CODEOFFSET
public WGTMLModule(WGDatabase db, WGDocumentCore doc, de.innovationgate.webgate.api.WGDocumentObjectFlags flags) throws WGAPIException
db - doc - WGAPIExceptionpublic static java.lang.String createDeploymentKey(java.lang.String dbKey,
java.lang.String moduleName,
java.lang.String mediaKey)
dbKey - The database of the modulemoduleName - The name of the modulemediaKey - The media key of the modulepublic java.lang.String getName()
throws WGAPIException
getName in class WGDesignDocumentWGAPIExceptionpublic java.lang.String getCode()
throws WGAPIException
WGAPIExceptionpublic boolean setCode(java.lang.String code)
throws WGAPIException
code - WGAPIExceptionpublic java.lang.String getMediaKey()
throws WGAPIException
getMediaKey in class WGDesignDocumentWGAPIExceptionpublic boolean isDirectAccessAllowed()
throws WGAPIException
WGAPIExceptionpublic boolean setDirectAccessAllowed(boolean value)
throws WGAPIException
value - WGAPIExceptionpublic WGDocument createClone(WGDatabase db) throws WGAPIException
WGDesignDocumentcreateClone in class WGDesignDocumentdb - Target databaseWGAPIExceptionpublic void pushData(WGDocument doc) throws WGAPIException
WGDocumentpushData in class WGDocumentdoc - The target document receiving the data.WGAPIException - If something goes wrongpublic boolean isCacheable()
throws WGAPIException
WGAPIExceptionpublic boolean setCacheable(boolean cacheable)
throws WGAPIException
WGAPIExceptionpublic void performSaveCheck()
throws ResourceIsLockedException,
WGAPIException,
WGAuthorisationException
WGDocumentWGAuthorisationException is thrown.
For checking saving permissions without catching an exception see WGDocument.maySave().performSaveCheck in class WGDesignResourceDocumentWGAPIExceptionResourceIsLockedExceptionWGAuthorisationExceptionpublic void dropCache()
throws WGAPIException
WGDocumentdropCache in class WGDocumentWGAPIExceptionpublic java.util.List<PageHierarchyNode> getChildNodes() throws WGAPIException
PageHierarchyNodegetChildNodes in interface PageHierarchyNodeWGAPIExceptionpublic de.innovationgate.utils.SkippingIterator<? extends PageHierarchyNode> getChildNodeIterator(int pageSize) throws WGAPIException
PageHierarchyNodegetChildNodeIterator in interface PageHierarchyNodepageSize - The size of a fetch page, if the implementation fetches childnodes page-wiseWGAPIExceptionpublic java.lang.Class getChildNodeType()
PageHierarchyNodegetChildNodeType in interface PageHierarchyNodepublic java.lang.String getNodeKey()
throws WGAPIException
PageHierarchyNodegetNodeKey in interface PageHierarchyNodeWGAPIExceptionpublic java.lang.String getNodeTitle(java.lang.String language)
throws WGAPIException
PageHierarchyNodegetNodeTitle in interface PageHierarchyNodelanguage - The language whose title is wantedWGAPIExceptionpublic PageHierarchyNode getParentNode() throws WGAPIException
PageHierarchyNodegetParentNode in interface PageHierarchyNodeWGAPIExceptionpublic int getCodeOffset()
throws WGAPIException
WGAPIExceptionpublic int getType()
WGDocumentgetType in class WGDocument