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.RevisionProvider
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.IDProvider
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Type used for scripts which can be used in the ContentCreatorstatic final int
Applicable for context menu use.static final int
Applicable for menu use.static final int
Type used for scripts which can be used on javaclient extras menue and javaclient homepagestatic final int
Applicable for template use.static final IDProvider.UidType
The script UID type.static final int
Deprecated.Fields inherited from interface de.espirit.firstspirit.storage.HistoryProvider
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Fields inherited from interface de.espirit.firstspirit.access.store.IDProvider
CHANGED, NEVER_RELEASED, RELEASED
Fields 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 String
getName()
Provides the name of the script.int
getType()
Returns the type of this script.@NotNull IDProvider.UidType
Returns the value ofUID_TYPE
.@NotNull String
Returns the view script defined for this script or an empty string.Delivers an executable of the relatedview script
.boolean
Indicates whether this script is always active or not.void
setAlwaysActive
(boolean alwaysActive) Sets the always active flag for this script.void
setComment
(String comment) Defines the comment for this script.void
setDescription
(String description) Defines the description of this script.void
Defines the name of the script.void
setType
(int type) Sets the type of the script.void
setViewScript
(String script) Defines the view script of this script.Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.ChannelSourceProvider
getChannelSource, setChannelSource
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.GomSourceProvider
getDefaults, getFormDefaults, getGomProvider, getGomSource, setDefaults, setFormDefaults, setGomProvider, setGomSource
Methods inherited from interface de.espirit.firstspirit.storage.HistoryProvider
asRevisionProvider, getHistory, getHistory
Methods inherited from interface de.espirit.firstspirit.access.store.IDProvider
contrastWith, getDisplayName, getId, getInRevision, getLanguageInfo, getLongID, getMeta, getMetaFormData, getParent, getReleasedBy, getReleaseRevision, getReleaseStatus, getRevision, getUid, hasMeta, hasUid, isInReleaseStore, isReleased, isReleaseSupported, moveChild, moveChild, release, release, revert, setDisplayName, setMeta, setMetaFormData, setUid
Methods inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeState
Methods inherited from interface de.espirit.firstspirit.access.store.Referenceable
getReferenceName
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.RulesetContainer
getRulesetDefinition, setRulesetDefinition
Methods 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, 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
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateStoreElement
getSubRootInStore
Methods 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 - useFormatTemplate
insteadNot 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:
getName
in 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 deliversfalse
the relatedview script
will be executed to evaluate the visibility state of the script.- Returns:
true
if this script is always active,false
otherwise- Since:
- 4.2.474
- See Also:
-
setAlwaysActive
void setAlwaysActive(boolean alwaysActive) Sets the always active flag for this script. If always active is set tofalse
the relatedview script
will 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 active
to evaluate the visibility state of this script. The script should return a boolean value to define visibility. Since 5.0 the usage ofsetProperty
with propertyvisible
in thecontext
is 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 active
to evaluate the visibility state of this script. The given script should return a boolean value to define visibility. Since 5.0 the usage ofsetProperty
with propertyvisible
in thecontext
is 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:
getUidType
in interfaceIDProvider
- Returns:
- the unique identifier
- Since:
- 4.0
- See Also:
-
FormatTemplate
instead