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 String
Return the default tag for a gom element.getName()
The allowed upload folder to set for the defined store namegetStore()
The store namestatic Store.Type
getStoreType
(String store) Converts a store name into aStore.Type
getUid()
The UID this element holds as a reference.TheIDProvider.UidType
of the references contained.boolean
Checks if the specifiedstore name
is valid.void
Sets the allowed upload folder to set for the defined store namevoid
Sets the store namevoid
validate
(GomCheckable.Context context) Validate the element against the given context.void
verify()
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:GomUidProviding
The UID this element holds as a reference.- Specified by:
getUid
in interfaceGomUidProviding
- Returns:
- The UID or
null
.
-
getUidType
Description copied from interface:GomUidTypeProviding
TheIDProvider.UidType
of the references contained.- Specified by:
getUidType
in 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:AbstractGomElement
Return the default tag for a gom element.- Specified by:
getDefaultTag
in classAbstractGomElement
- Returns:
- The elements default tag.
-
verify
Description copied from interface:GomCheckable
Verify the element to be fulfill its syntactic constraints.- Specified by:
verify
in interfaceGomCheckable
- Throws:
IllegalStateException
- If the element is not correctly set up.
-
validate
Description copied from interface:GomCheckable
Validate the element against the given context.- Specified by:
validate
in 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 name
is valid.- Returns:
- true if the store name is valid,
false
otherwise. - Since:
- 5.2
-