-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MORE-350 extend confiuration for visibility values in observation fac…
…tories
- Loading branch information
Thomas Kurz
committed
Oct 6, 2023
1 parent
0bd7391
commit cdc7f3e
Showing
5 changed files
with
69 additions
and
5 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
34 changes: 34 additions & 0 deletions
34
studymanager-core/src/main/java/io/redlink/more/studymanager/core/io/Visibility.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,34 @@ | ||
package io.redlink.more.studymanager.core.io; | ||
|
||
public class Visibility { | ||
|
||
public static final Visibility DEFAULT = new Visibility(true, false); | ||
boolean changeable; | ||
boolean hiddenByDefault; | ||
|
||
public Visibility() { | ||
} | ||
|
||
public Visibility(boolean changeable, boolean hiddenByDefault) { | ||
this.changeable = changeable; | ||
this.hiddenByDefault = hiddenByDefault; | ||
} | ||
|
||
public boolean isChangeable() { | ||
return changeable; | ||
} | ||
|
||
public Visibility setChangeable(boolean changeable) { | ||
this.changeable = changeable; | ||
return this; | ||
} | ||
|
||
public boolean isHiddenByDefault() { | ||
return hiddenByDefault; | ||
} | ||
|
||
public Visibility setHiddenByDefault(boolean hiddenByDefault) { | ||
this.hiddenByDefault = hiddenByDefault; | ||
return this; | ||
} | ||
} |
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