Class ProjectConstraint
java.lang.Object
de.espirit.firstspirit.base.store.templatestore.gom.ProjectConstraint
- All Implemented Interfaces:
Serializable
Constraint representation for a project
- Since:
- 5.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDescribes the type of the constraint. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates if the project performs an automatic release after uploadboolean@NotNull StringgetName()Symbolic name of the project<SOURCES> <FOLDER name="root" store="pagestore"/> <FOLDER name="test" store="mediastore"/> <FOLDER name="root" store="sitestore"/> </SOURCES>@Nullable StringName of the folder to be used for uploadsinthashCode()booleanIndicates if the constraint refers to a categorybooleanisLocal()Indicates if the constraint refers to a local projectstatic ProjectConstraintwith(@NotNull ProjectConstraint.Type type, @NotNull String name, @Nullable String uploadFolder) Creates a new instance with the given parametersstatic ProjectConstraintwith(@NotNull ProjectConstraint.Type type, @NotNull String name, @Nullable String uploadFolder, boolean autoReleaseAfterUpload, @NotNull Map<String, List<String>> sources) Creates a new instance with the given parametersstatic ProjectConstraintwith(@NotNull ProjectConstraint.Type type, @NotNull String name, @Nullable String uploadFolder, @NotNull Map<String, List<String>> sources) Creates a new instance with the given parameters
-
Method Details
-
with
public static ProjectConstraint with(@NotNull @NotNull ProjectConstraint.Type type, @NotNull @NotNull String name, @Nullable @Nullable String uploadFolder) Creates a new instance with the given parameters- Parameters:
type- type of the constraintname- symbolic name of the projectuploadFolder- name of the folder to be used for uploads- Returns:
- a new constraint instance
- Since:
- 5.0
-
with
public static ProjectConstraint with(@NotNull @NotNull ProjectConstraint.Type type, @NotNull @NotNull String name, @Nullable @Nullable String uploadFolder, @NotNull @NotNull Map<String, List<String>> sources) Creates a new instance with the given parameters- Parameters:
type- type of the constraintname- symbolic name of the projectuploadFolder- name of the folder to be used for uploadssources- allowed sources- Returns:
- a new constraint instance
- Since:
- 5.0
-
with
public static ProjectConstraint with(@NotNull @NotNull ProjectConstraint.Type type, @NotNull @NotNull String name, @Nullable @Nullable String uploadFolder, boolean autoReleaseAfterUpload, @NotNull @NotNull Map<String, List<String>> sources) Creates a new instance with the given parameters- Parameters:
type- type of the constraintname- symbolic name of the projectuploadFolder- name of the folder to be used for uploadsautoReleaseAfterUpload- if the project performs an automatic release after uploadsources- allowed sources- Returns:
- a new constraint instance
- Since:
- 5.0
-
equals
-
hashCode
public int hashCode() -
isLocal
public boolean isLocal()Indicates if the constraint refers to a local project- Returns:
trueif this constraint refers to a local project,false otherwise- Since:
- 5.0
-
getName
Symbolic name of the project- Returns:
- the symbolic name of the project, never
null - Since:
- 5.0
-
getUploadFolder
Name of the folder to be used for uploads- Returns:
- the name of the upload folder, may be
null - Since:
- 5.0
-
isCategory
public boolean isCategory()Indicates if the constraint refers to a category- Returns:
trueif this constraint refers to a category,false otherwise- Since:
- 5.0
-
autoReleaseAfterUpload
public boolean autoReleaseAfterUpload()Indicates if the project performs an automatic release after upload- Returns:
trueif the project performs an automatic release after upload,falseotherwise- Since:
- 5.0
-
getSources
<SOURCES> <FOLDER name="root" store="pagestore"/> <FOLDER name="test" store="mediastore"/> <FOLDER name="root" store="sitestore"/> </SOURCES>- Returns:
- the allowed sources listing. May be empty but never
null. - Since:
- 5.0
- See Also:
-