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
Modifier and TypeClassDescriptionstatic enum
Describes the type of the constraint. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates if the project performs an automatic release after uploadboolean
@NotNull String
getName()
Symbolic name of the project<SOURCES> <FOLDER name="root" store="pagestore"/> <FOLDER name="test" store="mediastore"/> <FOLDER name="root" store="sitestore"/> </SOURCES>@Nullable String
Name of the folder to be used for uploadsint
hashCode()
boolean
Indicates if the constraint refers to a categoryboolean
isLocal()
Indicates if the constraint refers to a local projectstatic ProjectConstraint
with
(@NotNull ProjectConstraint.Type type, @NotNull String name, @Nullable String uploadFolder) Creates a new instance with the given parametersstatic ProjectConstraint
with
(@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 ProjectConstraint
with
(@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:
true
if 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:
true
if 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:
true
if the project performs an automatic release after upload,false
otherwise- 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:
-