public abstract class WGCSSJSModule extends WGDesignResourceDocument implements PageHierarchyNode
WGDocument.Cache, WGDocument.FakeMetaDataContext, WGDocument.SaveAction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CODETYPE_CSS
A module with CSS-Code
|
static java.lang.String |
CODETYPE_JS
A module with JavaScript-Code
|
static java.lang.String |
CODETYPE_TMLSCRIPT
A Module with TMLScript-Code
|
static java.lang.String |
CODETYPE_VBS
Deprecated.
|
static java.lang.String |
CODETYPE_XML
A module with XML-Code
|
static java.lang.String |
META_CODE |
static java.lang.String |
META_CODEOFFSET |
static java.lang.String |
META_CODETYPE |
static java.lang.String |
METADATA_MODULE_QUALIFIER |
static MetaInfo |
METAINFO_CODE |
static MetaInfo |
METAINFO_CODEOFFSET |
static MetaInfo |
METAINFO_CODETYPE |
META_SOURCEFILENAME, METAINFO_SOURCEFILENAME
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 |
---|
WGCSSJSModule(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
|
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 program code of this library.
|
int |
getCodeOffset()
Returns the line number that the first line of code in this module had in its source medium.
|
java.lang.String |
getCodeType()
Returns the library type.
|
org.dom4j.Document |
getDOMDocument()
If codetype is XML, returns the contained XML-code as dom Document.
|
java.lang.String |
getMediaKey()
The media key of this design document, if any.
|
java.lang.String |
getName()
Returns the name of this library
|
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 |
isMetadataModule()
Determines if the module is a metadata module
|
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 |
setCode(java.lang.String code)
Sets the program code of this library.
|
boolean |
setCodeType(java.lang.String type)
Sets the code type of this library.
|
void |
setDOMDocument(org.dom4j.Document doc)
Converts the given DOM-Document to XML sets it as code for this module.
|
getSourceFileName
buildDesignDocumentKey, createClone, getDescription, getDesignReference, 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, hasFile, hasFileMetadata, hashCode, hasItem, innerAttachFile, isCachingEnabled, isCoreRetrieved, isDeleted, isDeleted, isDummy, isEdited, isListMeta, isSaved, isTemporary, lock, lock, markEdited, markMetaDataModified, mayPushExtData, 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, writeFileDerivateMetaData
public static java.lang.String CODETYPE_XML
public static final java.lang.String CODETYPE_JS
public static final java.lang.String CODETYPE_CSS
public static final java.lang.String CODETYPE_VBS
public static final java.lang.String CODETYPE_TMLSCRIPT
public static final java.lang.String META_CODE
public static final MetaInfo METAINFO_CODE
public static final java.lang.String META_CODETYPE
public static final MetaInfo METAINFO_CODETYPE
public static final java.lang.String META_CODEOFFSET
public static final MetaInfo METAINFO_CODEOFFSET
public static final java.lang.String METADATA_MODULE_QUALIFIER
public WGCSSJSModule(WGDatabase db, WGDocumentCore doc, de.innovationgate.webgate.api.WGDocumentObjectFlags flags) throws WGAPIException
WGAPIException
public java.lang.String getName() throws WGAPIException
getName
in class WGDesignDocument
WGAPIException
public java.lang.String getCode() throws WGAPIException
WGAPIException
public boolean setCode(java.lang.String code) throws WGAPIException
code
- WGAPIException
public java.lang.String getCodeType() throws WGAPIException
WGAPIException
public boolean setCodeType(java.lang.String type) throws WGAPIException
type
- WGAPIException
public WGDocument createClone(WGDatabase db) throws WGAPIException
WGDesignDocument
createClone
in class WGDesignDocument
db
- Target databaseWGAPIException
public void pushData(WGDocument doc) throws WGAPIException
WGDocument
pushData
in class WGDocument
doc
- The target document receiving the data.WGAPIException
- If something goes wrongpublic org.dom4j.Document getDOMDocument() throws org.dom4j.DocumentException, WGAPIException
org.dom4j.DocumentException
WGAPIException
public void setDOMDocument(org.dom4j.Document doc) throws WGAPIException
doc
- The DOM document that will be converted to XMLWGAPIException
public void performSaveCheck() throws ResourceIsLockedException, WGAPIException, WGAuthorisationException
WGDocument
WGAuthorisationException
is thrown.
For checking saving permissions without catching an exception see WGDocument.maySave()
.performSaveCheck
in class WGDesignResourceDocument
WGAPIException
ResourceIsLockedException
WGAuthorisationException
public boolean isMetadataModule() throws WGAPIException
WGAPIException
public java.util.List<PageHierarchyNode> getChildNodes() throws WGAPIException
PageHierarchyNode
getChildNodes
in interface PageHierarchyNode
WGAPIException
public de.innovationgate.utils.SkippingIterator<? extends PageHierarchyNode> getChildNodeIterator(int pageSize) throws WGAPIException
PageHierarchyNode
getChildNodeIterator
in interface PageHierarchyNode
pageSize
- The size of a fetch page, if the implementation fetches childnodes page-wiseWGAPIException
public java.lang.Class getChildNodeType()
PageHierarchyNode
getChildNodeType
in interface PageHierarchyNode
public java.lang.String getNodeKey() throws WGAPIException
PageHierarchyNode
getNodeKey
in interface PageHierarchyNode
WGAPIException
public java.lang.String getNodeTitle(java.lang.String language) throws WGAPIException
PageHierarchyNode
getNodeTitle
in interface PageHierarchyNode
language
- The language whose title is wantedWGAPIException
public PageHierarchyNode getParentNode() throws WGAPIException
PageHierarchyNode
getParentNode
in interface PageHierarchyNode
WGAPIException
public java.lang.String getMediaKey() throws WGAPIException
WGDesignDocument
getMediaKey
in class WGDesignDocument
WGAPIException
public int getCodeOffset() throws WGAPIException
WGAPIException
public int getType()
WGDocument
getType
in class WGDocument