Class Conditions
- java.lang.Object
-
- ch.colabproject.colab.api.security.permissions.Conditions
-
public final class Conditions extends Object
Utility class to build conditions- Author:
- maxence
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Conditions.And
AND conditionstatic class
Conditions.Condition
Abstract condition.static class
Conditions.DoCurrentUserWorkOnSameProjectThanUser
Do current and given user work on a common project ?static class
Conditions.HasCardReadRight
Has the current user access to a card ?static class
Conditions.HasCardWriteRight
Has the current user write access to a card ?static class
Conditions.IsCurrentUserInternalToProject
The current user must be, at least, internal to given project teamstatic class
Conditions.IsCurrentUserMemberOfProject
The current user must be member of the given project teamstatic class
Conditions.IsCurrentUserTeamMateOfUser
Are current and given users teammate ?static class
Conditions.IsCurrentUserThisUser
Is the current user the given one ?static class
Conditions.Not
NOTstatic class
Conditions.Or
OR condition
-
Field Summary
Fields Modifier and Type Field Description static Conditions.Condition
alwaysFalse
A always false conditionstatic Conditions.Condition
alwaysTrue
An always true conditionstatic Conditions.Condition
authenticated
Is the current authenticated conditionstatic Conditions.Condition
defaultForOrphan
By default if the situation cannot happen
-
-
-
Field Detail
-
alwaysTrue
public static final Conditions.Condition alwaysTrue
An always true condition
-
alwaysFalse
public static final Conditions.Condition alwaysFalse
A always false condition
-
defaultForOrphan
public static final Conditions.Condition defaultForOrphan
By default if the situation cannot happen
-
authenticated
public static final Conditions.Condition authenticated
Is the current authenticated condition
-
-