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 classConditions.AndAND conditionstatic classConditions.ConditionAbstract condition.static classConditions.DoCurrentUserWorkOnSameProjectThanUserDo current and given user work on a common project ?static classConditions.HasCardReadRightHas the current user access to a card ?static classConditions.HasCardWriteRightHas the current user write access to a card ?static classConditions.IsCurrentUserInternalToProjectThe current user must be, at least, internal to given project teamstatic classConditions.IsCurrentUserMemberOfProjectThe current user must be member of the given project teamstatic classConditions.IsCurrentUserTeamMateOfUserAre current and given users teammate ?static classConditions.IsCurrentUserThisUserIs the current user the given one ?static classConditions.NotNOTstatic classConditions.OrOR condition
-
Field Summary
Fields Modifier and Type Field Description static Conditions.ConditionalwaysFalseA always false conditionstatic Conditions.ConditionalwaysTrueAn always true conditionstatic Conditions.ConditionauthenticatedIs the current authenticated conditionstatic Conditions.ConditiondefaultForOrphanBy 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
-
-