public interface ScriptContainer extends IDProvider
scripts
as children.IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
HistoryProvider.RevisionProvider
CHANGED, NEVER_RELEASED, RELEASED
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Modifier and Type | Method and Description |
---|---|
Script |
createScript(String uid,
Map<Language,String> lang2DisplayName,
boolean unifyUid)
Creates a new Script as child of this ScriptContainer
|
Script |
createScript(String name,
String description)
Calls
createScript(String, java.util.Map, boolean) and uses the given description as displayname for the
default editorial language . |
ScriptFolder |
createScriptFolder(String name)
|
ScriptFolder |
createScriptFolder(String name,
Map<Language,String> lang2DisplayName)
Creates a
ScriptFolder with the given name and displaynames as a child of this ScriptContainer. |
List<Script> |
getAllScripts()
Deprecated.
since 5.0.100 - use
getChildren(Script.class), true instead |
Script |
getScriptByName(String uid)
Returns the script specified by the given uid or
null if no script with
given uid exists as child of this script container |
contrastWith, getDisplayName, getId, getInRevision, getLanguageInfo, getLongID, getMeta, getMetaFormData, getParent, getReleasedBy, getReleaseRevision, getReleaseStatus, getRevision, getUid, getUidType, hasMeta, hasUid, isInReleaseStore, isReleased, isReleaseSupported, moveChild, moveChild, release, release, revert, setMeta, setMetaFormData, setUid
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getName, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getProject, getReferenceName, getReferences, getStore, getTreePermission, getWorkflowPermission, getWorkflowPermissions, getWriteLock, hasIncomingReferences, hasPermissions, importStoreElement, importStoreElements, inheritWorkflowPermission, isDeleted, isExportSupported, isFolder, isImportSupported, isLocked, isLockedOnServer, isLockSupported, isPermissionSupported, isWorkflowAllowed, isWorkflowSupported, refresh, removeAllWorkflowPermissions, removeChild, removePermission, removePermission, removePermission, removeWorkflowPermission, replaceChild, save, save, save, setInheritWorkflowPermission, setLock, setLock, setPermission, setPermission, setPermission, setWorkflowPermission, setWorkflowPermissions, setWriteLock, toXml, toXml, toXml, update
getColor, getTask, hasTask, removeTask, setColor, setTask
compareTo
asRevisionProvider, getHistory, getHistory
ScriptFolder createScriptFolder(String name) throws LockException, ElementDeletedException
LockException
ElementDeletedException
createScriptFolder(String, java.util.Map)
ScriptFolder createScriptFolder(String name, @Nullable Map<Language,String> lang2DisplayName) throws LockException, ElementDeletedException
ScriptFolder
with the given name and displaynames as a child of this ScriptContainer.name
- the name of the new folderlang2DisplayName
- mapping of language to language specific displayname; used to create LanguageInfo
nodesLockException
- if this folder is locked in another sessionElementDeletedException
- if this folder is already deleted on the serverScript createScript(String name, String description) throws LockException, ElementDeletedException
createScript(String, java.util.Map, boolean)
and uses the given description as displayname for the
default editorial language
.LockException
ElementDeletedException
createScript(String, java.util.Map, boolean)
Script createScript(String uid, @Nullable Map<Language,String> lang2DisplayName, boolean unifyUid) throws LockException, DuplicateReferenceNameException, ElementDeletedException
uid
- the uid of the new Scriptlang2DisplayName
- mapping of language
to language specific displayname; used to create LanguageInfo
nodesunifyUid
- if false
a DuplicateReferenceNameException
may be thrown , if
true
the name will be unified on the server if necessaryLockException
- if this script container is locked in another sessionDuplicateReferenceNameException
- if unifyNameOnServer is false
and an element with the given uid in the same namescope already exits on the serverElementDeletedException
@Deprecated List<Script> getAllScripts()
getChildren(Script.class), true
insteadscripts
of this script container.
Shortcut for StoreElement.getChildren(Script.class, true)
scripts
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500