Class GomStoreFolder
java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.GomStoreFolder
- All Implemented Interfaces:
GomCheckable,GomElement,GomUidProviding,GomUidTypeProviding,Serializable
- Direct Known Subclasses:
GomSiteOrMediaStoreFolder
@NonExtendable
public class GomStoreFolder
extends AbstractGomElement
implements GomCheckable, GomUidTypeProviding, GomUidProviding
Folder element for store-based folder restrictions
- Since:
- 4.2.9
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGomStoreFolder(String store, String name) Creates a new instance with the given store name and folder name -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturn the default tag for a gom element.getName()The allowed upload folder to set for the defined store namegetStore()The store namestatic Store.TypegetStoreType(String store) Converts a store name into aStore.TypegetUid()The UID this element holds as a reference.TheIDProvider.UidTypeof the references contained.booleanChecks if the specifiedstore nameis valid.voidSets the allowed upload folder to set for the defined store namevoidSets the store namevoidvalidate(GomCheckable.Context context) Validate the element against the given context.voidverify()Verify the element to be fulfill its syntactic constraints.Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
-
Field Details
-
STORE_ROOT_IDENTIFIER
Identifier for the store root- Since:
- 4.2.9
- See Also:
-
TAG
The tag of this component- Since:
- 4.2.9
- See Also:
-
-
Constructor Details
-
GomStoreFolder
Creates a new instance with the given store name and folder name- Parameters:
store- the name of the storename- the name of the folder- Since:
- 4.2.9
-
-
Method Details
-
getStore
The store name- Since:
- 4.2.9
-
getUid
Description copied from interface:GomUidProvidingThe UID this element holds as a reference.- Specified by:
getUidin interfaceGomUidProviding- Returns:
- The UID or
null.
-
getUidType
Description copied from interface:GomUidTypeProvidingTheIDProvider.UidTypeof the references contained.- Specified by:
getUidTypein interfaceGomUidTypeProviding- Returns:
- The associated uid type.
-
setStore
Sets the store name- Since:
- 4.2.9
-
getName
The allowed upload folder to set for the defined store name- Since:
- 4.2.9
-
setName
Sets the allowed upload folder to set for the defined store name- Parameters:
name- the upload folder name- Since:
- 4.2.9
-
getDefaultTag
Description copied from class:AbstractGomElementReturn the default tag for a gom element.- Specified by:
getDefaultTagin classAbstractGomElement- Returns:
- The elements default tag.
-
verify
Description copied from interface:GomCheckableVerify the element to be fulfill its syntactic constraints.- Specified by:
verifyin interfaceGomCheckable- Throws:
IllegalStateException- If the element is not correctly set up.
-
validate
Description copied from interface:GomCheckableValidate the element against the given context.- Specified by:
validatein interfaceGomCheckable- Parameters:
context- The context to validate for, must not benull.- Throws:
GomValidationError- If the element is not plausible wrt. its context.
-
getStoreType
Converts a store name into aStore.Type- Parameters:
store- the name of the store- Returns:
- the matching store type
- Since:
- 4.2.9
- See Also:
-
isValidStoreType
public boolean isValidStoreType()Checks if the specifiedstore nameis valid.- Returns:
- true if the store name is valid,
falseotherwise. - Since:
- 5.2
-