-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2372 from dzhw/release
Release v1.0.91
- Loading branch information
Showing
116 changed files
with
1,565 additions
and
525 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
.../fdz/metadatamanagement/projectmanagement/domain/ShadowCopyQueueItem-Action.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.. java:import:: java.time LocalDateTime | ||
.. java:import:: javax.validation.constraints NotNull | ||
.. java:import:: org.springframework.data.annotation Id | ||
.. java:import:: org.springframework.data.mongodb.core.mapping Document | ||
.. java:import:: eu.dzhw.fdz.metadatamanagement.common.domain AbstractRdcDomainObject | ||
.. java:import:: lombok AllArgsConstructor | ||
.. java:import:: lombok Data | ||
.. java:import:: lombok EqualsAndHashCode | ||
.. java:import:: lombok NoArgsConstructor | ||
ShadowCopyQueueItem.Action | ||
========================== | ||
|
||
.. java:package:: eu.dzhw.fdz.metadatamanagement.projectmanagement.domain | ||
:noindex: | ||
|
||
.. java:type:: public enum Action | ||
:outertype: ShadowCopyQueueItem | ||
|
||
The action which will be performed for the shadows. | ||
|
||
Enum Constants | ||
-------------- | ||
CREATE | ||
^^^^^^ | ||
|
||
.. java:field:: public static final ShadowCopyQueueItem.Action CREATE | ||
:outertype: ShadowCopyQueueItem.Action | ||
|
||
HIDE | ||
^^^^ | ||
|
||
.. java:field:: public static final ShadowCopyQueueItem.Action HIDE | ||
:outertype: ShadowCopyQueueItem.Action | ||
|
||
UNHIDE | ||
^^^^^^ | ||
|
||
.. java:field:: public static final ShadowCopyQueueItem.Action UNHIDE | ||
:outertype: ShadowCopyQueueItem.Action | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...metadatamanagement/projectmanagement/domain/ShadowHidingNotAllowedException.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
ShadowHidingNotAllowedException | ||
=============================== | ||
|
||
.. java:package:: eu.dzhw.fdz.metadatamanagement.projectmanagement.domain | ||
:noindex: | ||
|
||
.. java:type:: public class ShadowHidingNotAllowedException extends Exception | ||
Exception which is thrown when the user tries to hide a master or the most recent shadow copy. | ||
|
||
:author: René Reitmann | ||
|
||
Fields | ||
------ | ||
serialVersionUID | ||
^^^^^^^^^^^^^^^^ | ||
|
||
.. java:field:: private static final long serialVersionUID | ||
:outertype: ShadowHidingNotAllowedException | ||
|
20 changes: 20 additions & 0 deletions
20
...tadatamanagement/projectmanagement/domain/ShadowUnhidingNotAllowedException.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
ShadowUnhidingNotAllowedException | ||
================================= | ||
|
||
.. java:package:: eu.dzhw.fdz.metadatamanagement.projectmanagement.domain | ||
:noindex: | ||
|
||
.. java:type:: public class ShadowUnhidingNotAllowedException extends Exception | ||
Exception which is thrown when the user tries to unhide shadows which are already unhidden. | ||
|
||
:author: René Reitmann | ||
|
||
Fields | ||
------ | ||
serialVersionUID | ||
^^^^^^^^^^^^^^^^ | ||
|
||
.. java:field:: private static final long serialVersionUID | ||
:outertype: ShadowUnhidingNotAllowedException | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,6 @@ public enum TaskState { | |
* | ||
*/ | ||
public enum TaskType { | ||
DATA_SET_REPORT, | ||
PROJECT_RELEASE | ||
DATA_SET_REPORT | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
src/main/java/eu/dzhw/fdz/metadatamanagement/common/domain/validation/ValidHiddenShadow.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package eu.dzhw.fdz.metadatamanagement.common.domain.validation; | ||
|
||
import java.lang.annotation.Documented; | ||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
import javax.validation.Constraint; | ||
import javax.validation.Payload; | ||
|
||
import eu.dzhw.fdz.metadatamanagement.common.domain.AbstractShadowableRdcDomainObject; | ||
|
||
/** | ||
* Validates that {@link AbstractShadowableRdcDomainObject} {@code hidden} is true if and only if | ||
* the domain object is a shadow and has a successor. | ||
*/ | ||
@Documented | ||
@Constraint(validatedBy = ValidHiddenShadowValidator.class) | ||
@Target({ElementType.TYPE}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface ValidHiddenShadow { | ||
|
||
/** | ||
* Defines the default error message. | ||
*/ | ||
String message() default "{common.domain.validation.error.invalid-hidden-shadow}"; | ||
|
||
/** | ||
* Groups parameter. | ||
*/ | ||
Class<?>[] groups() default {}; | ||
|
||
/** | ||
* Payload parameter. | ||
*/ | ||
Class<? extends Payload>[] payload() default {}; | ||
} |
31 changes: 31 additions & 0 deletions
31
...a/eu/dzhw/fdz/metadatamanagement/common/domain/validation/ValidHiddenShadowValidator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package eu.dzhw.fdz.metadatamanagement.common.domain.validation; | ||
|
||
import javax.validation.ConstraintValidator; | ||
import javax.validation.ConstraintValidatorContext; | ||
|
||
import org.springframework.util.StringUtils; | ||
|
||
import eu.dzhw.fdz.metadatamanagement.common.domain.AbstractShadowableRdcDomainObject; | ||
|
||
/** | ||
* Default validator implementation for {@link ValidHiddenShadow} validation. | ||
*/ | ||
public class ValidHiddenShadowValidator | ||
implements ConstraintValidator<ValidHiddenShadow, AbstractShadowableRdcDomainObject> { | ||
|
||
@Override | ||
public boolean isValid(AbstractShadowableRdcDomainObject abstractShadowableRdcDomainObject, | ||
ConstraintValidatorContext constraintValidatorContext) { | ||
|
||
if (!abstractShadowableRdcDomainObject.isHidden()) { | ||
return true; | ||
} | ||
|
||
if (abstractShadowableRdcDomainObject.isShadow() | ||
&& StringUtils.hasText(abstractShadowableRdcDomainObject.getSuccessorId())) { | ||
return true; | ||
} | ||
|
||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.