Interface Script
- All Superinterfaces:
ChannelSourceProvider,Comparable<StoreElement>,GomSourceProvider,HistoryProvider,IDProvider,PackagePoolItem,Referenceable,RulesetContainer,RulesetContainer,StoreElement,TemplateStoreElement,Workflowable
public interface Script
extends Referenceable, GomSourceProvider, ChannelSourceProvider, PackagePoolItem, TemplateStoreElement, RulesetContainer
This interface provides methods to handle the scripts in the
TemplateStore- Since:
- 3.0
- See Also:
-
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
FieldsModifier and TypeFieldDescriptionstatic final intType used for scripts which can be used in the ContentCreatorstatic final intApplicable for context menu use.static final intApplicable for menu use.static final intType used for scripts which can be used on javaclient extras menue and javaclient homepagestatic final intApplicable for template use.static final IDProvider.UidTypeThe script UID type.static final intDeprecated.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, RELEASEDFields inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
BLOCKED, MODIFIED, UNMODIFIED -
Method Summary
Modifier and TypeMethodDescriptionProvides the comment set for this script.Provides a description of this script.getExecutable(TemplateSet templateSet) Provides an executable based on the requested template set.@NotNull StringgetName()Provides the name of the script.intgetType()Returns the type of this script.@NotNull IDProvider.UidTypeReturns the value ofUID_TYPE.@NotNull StringReturns the view script defined for this script or an empty string.Delivers an executable of the relatedview script.booleanIndicates whether this script is always active or not.voidsetAlwaysActive(boolean alwaysActive) Sets the always active flag for this script.voidsetComment(String comment) Defines the comment for this script.voidsetDescription(String description) Defines the description of this script.voidDefines the name of the script.voidsetType(int type) Sets the type of the script.voidsetViewScript(String script) Defines the view script of this script.Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.ChannelSourceProvider
getChannelSource, setChannelSourceMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.GomSourceProvider
getDefaults, getFormDefaults, getGomProvider, getGomSource, setDefaults, setFormDefaults, setGomProvider, setGomSourceMethods 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, 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.PackagePoolItem
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeStateMethods inherited from interface de.espirit.firstspirit.access.store.Referenceable
getReferenceNameMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.RulesetContainer
getRulesetDefinition, setRulesetDefinitionMethods 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, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getPreviousSibling, getProject, 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.store.templatestore.TemplateStoreElement
getSubRootInStoreMethods inherited from interface de.espirit.firstspirit.access.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Field Details
-
TEMPLATE
static final int TEMPLATEApplicable for template use.- Since:
- 2.3.10
- See Also:
-
MENUE
static final int MENUEApplicable for menu use.- Since:
- 2.3.10
- See Also:
-
CONTEXT_MENUE
static final int CONTEXT_MENUEApplicable for context menu use.- Since:
- 2.3.10
- See Also:
-
UNINTERPRETED
Deprecated.since 5.0.39 - useFormatTemplateinsteadNot applicable for scripting.- Since:
- 2.3.11
- See Also:
-
MENUE_AND_HOMEPAGE
static final int MENUE_AND_HOMEPAGEType used for scripts which can be used on javaclient extras menue and javaclient homepage- Since:
- 4.1.21
- See Also:
-
CONTENT_CREATOR
static final int CONTENT_CREATORType used for scripts which can be used in the ContentCreator- Since:
- 5.2.211103
- See Also:
-
UID_TYPE
The script UID type.- Since:
- 4.0.18
-
-
Method Details
-
getName
Provides the name of the script.- Specified by:
getNamein interfaceStoreElement- Returns:
- The script's name.
- Since:
- 3.0
-
setName
Defines the name of the script.- Parameters:
name- The script's name.- Since:
- 3.0
-
getDescription
String getDescription()Provides a description of this script.- Returns:
- The script's description.
- Since:
- 3.0
-
setDescription
Defines the description of this script.- Parameters:
description- The script's description.- Since:
- 3.0
-
getComment
String getComment()Provides the comment set for this script.- Returns:
- The comment.
- Since:
- 3.0
-
setComment
Defines the comment for this script.- Parameters:
comment- The comment.- Since:
- 3.0
-
getType
int getType()- Returns:
- type of the script. One of
TEMPLATE,MENUE,CONTEXT_MENUE,UNINTERPRETED - Since:
- 3.0
-
setType
void setType(int type) - Parameters:
type- One ofTEMPLATE,MENUE,CONTEXT_MENUE,UNINTERPRETED- Since:
- 3.0
-
isAlwaysActive
boolean isAlwaysActive()Indicates whether this script is always active or not. If this method deliversfalsethe relatedview scriptwill be executed to evaluate the visibility state of the script.- Returns:
trueif this script is always active,falseotherwise- Since:
- 4.2.474
- See Also:
-
setAlwaysActive
void setAlwaysActive(boolean alwaysActive) Sets the always active flag for this script. If always active is set tofalsethe relatedview scriptwill be executed to evaluate the visibility state.- Since:
- 3.0
- See Also:
-
getViewScript
Returns the view script defined for this script or an empty string.- Since:
- 3.0
- See Also:
-
getViewScriptExecutable
Executable getViewScriptExecutable()Delivers an executable of the relatedview script. This view script will be executed if this script is not defined asalways activeto evaluate the visibility state of this script. The script should return a boolean value to define visibility. Since 5.0 the usage ofsetPropertywith propertyvisiblein thecontextis deprecated.- Since:
- 4.0.120
- See Also:
-
setViewScript
Defines the view script of this script. The given script will be executed if this script is not defined asalways activeto evaluate the visibility state of this script. The given script should return a boolean value to define visibility. Since 5.0 the usage ofsetPropertywith propertyvisiblein thecontextis deprecated.- Since:
- 3.0
- See Also:
-
getExecutable
Provides an executable based on the requested template set.- Returns:
- The fitting executable or
null. - Since:
- 4.0.120
-
getUidType
Returns the value ofUID_TYPE.- Specified by:
getUidTypein interfaceIDProvider- Returns:
- the unique identifier
- Since:
- 4.0
- See Also:
-
FormatTemplateinstead