Class GomStorableRemoteProjectEntry
java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.GomStorableRemoteProjectEntry
- All Implemented Interfaces:
GomCheckable,GomElement,GomProjectEntry,GomRemoteProjectProviding,GomSingleProjectEntry,Serializable
@NonExtendable
public class GomStorableRemoteProjectEntry
extends AbstractGomElement
implements GomSingleProjectEntry, GomCheckable, GomRemoteProjectProviding
GOM representation of a storable location for a remote project
- Since:
- 4.2.20
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context -
Field Summary
FieldsFields inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomSingleProjectEntry
LOCAL_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a constraint representation of this entry.booleanConvenience API forgetAutoReleaseAfterUpload()returning a boolean valuebooleanIndicates if uploaded media is released automaticallyprotected StringReturn the default tag for a gom element.getName()The name of this entry.@Nullable StringThe name of a remote project configuration the uid references points to.Restrict access to specific folders (including sub-folders and store roots)Get the upload folder to be used for this project.inthashCode()booleanisLocal()Indicates the local project.static @NotNull GomStorableRemoteProjectEntryCreates a new instance with the specified remote namevoidsetAutoReleaseAfterUpload(YesNo autoRelease) Sets if uploaded media is released automaticallyvoidThe symbolic name of the remote projectvoidsetUploadFolder(String uploadFolder) Set the upload folder for this project.voidvalidate(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, setIncludeConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
-
Field Details
-
TAG
The tag of this component- Since:
- 4.2.20
- See Also:
-
-
Constructor Details
-
GomStorableRemoteProjectEntry
public GomStorableRemoteProjectEntry()
-
-
Method Details
-
on
Creates a new instance with the specified remote name- Parameters:
remote- the remote project name- Returns:
- the new instance, never
null - Since:
- 4.2.20
-
getDefaultTag
Description copied from class:AbstractGomElementReturn the default tag for a gom element.- Specified by:
getDefaultTagin classAbstractGomElement- Returns:
- The elements default tag.
-
getName
Description copied from interface:GomSingleProjectEntryThe name of this entry.- Specified by:
getNamein interfaceGomSingleProjectEntry- Returns:
- The name of the project.
-
setName
The symbolic name of the remote project- Since:
- 4.2.20
-
getRemoteProjectName
Description copied from interface:GomRemoteProjectProvidingThe name of a remote project configuration the uid references points to.- Specified by:
getRemoteProjectNamein interfaceGomRemoteProjectProviding- Returns:
- The associated remote project configuration name, or
nullfor the local project.
-
getUploadFolder
Description copied from interface:GomSingleProjectEntryGet the upload folder to be used for this project.- Specified by:
getUploadFolderin interfaceGomSingleProjectEntry- Returns:
- The name of the upload folder.
-
setUploadFolder
Description copied from interface:GomSingleProjectEntrySet the upload folder for this project.- Specified by:
setUploadFolderin interfaceGomSingleProjectEntry- Parameters:
uploadFolder- The name of the upload folder.
-
getAutoReleaseAfterUpload
Indicates if uploaded media is released automatically- Since:
- 4.2.20
-
setAutoReleaseAfterUpload
Sets if uploaded media is released automatically- Since:
- 4.2.20
-
getSources
Restrict access to specific folders (including sub-folders and store roots)- Since:
- 4.2.20
-
asConstraint
Description copied from interface:GomProjectEntryGet a constraint representation of this entry.- Specified by:
asConstraintin interfaceGomProjectEntry- Returns:
- The entry's constraint representation.
-
equals
-
hashCode
public int hashCode() -
isLocal
public boolean isLocal()Description copied from interface:GomSingleProjectEntryIndicates the local project.- Specified by:
isLocalin interfaceGomSingleProjectEntry- Returns:
trueiff this entry represents the local project.
-
autoReleaseAfterUpload
public boolean autoReleaseAfterUpload()Convenience API forgetAutoReleaseAfterUpload()returning a boolean value- Since:
- 4.2.20
-
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.
-