Interface ScriptContainer
- All Superinterfaces:
Comparable<StoreElement>,HistoryProvider,IDProvider,StoreElement,Workflowable
- All Known Subinterfaces:
ScriptFolder,Scripts
Interface providing methods for elements which can have
scripts as children.- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.storage.HistoryProvider
HistoryProvider.RevisionProviderNested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.IDProvider
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType -
Field Summary
Fields inherited from interface de.espirit.firstspirit.storage.HistoryProvider
ALL_REVISIONS, EVER_SINCE, UNTIL_NOWFields inherited from interface de.espirit.firstspirit.access.store.IDProvider
CHANGED, NEVER_RELEASED, RELEASED -
Method Summary
Modifier and TypeMethodDescriptioncreateScript(String uid, @Nullable Map<Language, String> lang2DisplayName, boolean unifyUid) Creates a new Script as child of this ScriptContainercreateScript(String name, String description) CallscreateScript(String, java.util.Map, boolean)and uses the given description as displayname for the defaulteditorial language.createScriptFolder(String name) createScriptFolder(String name, @Nullable Map<Language, String> lang2DisplayName) Creates aScriptFolderwith the given name and displaynames as a child of this ScriptContainer.Deprecated.getScriptByName(String uid) Returns the script specified by the given uid ornullif no script with given uid exists as child of this script containerMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.espirit.firstspirit.storage.HistoryProvider
asRevisionProvider, getHistory, getHistoryMethods inherited from interface de.espirit.firstspirit.access.store.IDProvider
contrastWith, getDisplayName, getId, getInRevision, getLanguageInfo, getLongID, getMeta, getMetaFormData, getParent, getReleasedBy, getReleaseRevision, getReleaseRevision, getReleaseStatus, getReleaseStatus, getRevision, getUid, getUidType, hasMeta, hasUid, isInReleaseStore, isInReleaseStore, isReachableInReleaseStore, isReleased, isReleased, isReleaseSupported, moveChild, moveChild, release, release, release, release, revert, setDisplayName, setMeta, setMetaFormData, setUidMethods inherited from interface de.espirit.firstspirit.access.store.StoreElement
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getName, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getPreviousSibling, getProject, getReferenceName, getReferences, 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, toXmlMethods inherited from interface de.espirit.firstspirit.access.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Method Details
-
createScriptFolder
- Throws:
LockExceptionElementDeletedException- Since:
- 3.0
- See Also:
-
createScriptFolder
ScriptFolder createScriptFolder(String name, @Nullable @Nullable Map<Language, String> lang2DisplayName) throws LockException, ElementDeletedExceptionCreates aScriptFolderwith the given name and displaynames as a child of this ScriptContainer.- Parameters:
name- the name of the new folderlang2DisplayName- mapping of language to language specific displayname; used to createLanguageInfonodes- Returns:
- the new folder
- Throws:
LockException- if this folder is locked in another sessionElementDeletedException- if this folder is already deleted on the server- Since:
- 4.2.400
-
createScript
CallscreateScript(String, java.util.Map, boolean)and uses the given description as displayname for the defaulteditorial language.- Throws:
LockExceptionElementDeletedException- Since:
- 3.0
- See Also:
-
createScript
Script createScript(String uid, @Nullable @Nullable Map<Language, String> lang2DisplayName, boolean unifyUid) throws LockException, DuplicateReferenceNameException, ElementDeletedExceptionCreates a new Script as child of this ScriptContainer- Parameters:
uid- the uid of the new Scriptlang2DisplayName- mapping oflanguageto language specific displayname; used to createLanguageInfonodesunifyUid- iffalseaDuplicateReferenceNameExceptionmay be thrown , iftruethe name will be unified on the server if necessary- Returns:
- the new script
- Throws:
LockException- if this script container is locked in another sessionDuplicateReferenceNameException- if unifyNameOnServer isfalseand an element with the given uid in the same namescope already exits on the serverElementDeletedException- Since:
- 4.0.29
-
getAllScripts
Deprecated.since 5.0.100 - usegetChildren(Script.class), trueinsteadReturns a list of allscriptsof this script container. Shortcut forStoreElement.getChildren(Script.class, true)- Returns:
- a list of all
scripts - Since:
- 3.0
-
getScriptByName
Returns the script specified by the given uid ornullif no script with given uid exists as child of this script container- Parameters:
uid- to specify the script to search for- Returns:
- the script specified by given uid or
null - Since:
- 3.0
-
getChildren(Script.class), trueinstead