public static enum ProjectACL.AccessLevel extends Enum<ProjectACL.AccessLevel>
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(ProjectACL.AccessLevel requestedLevel)
returns
true if the requested level can be accepted by this access level |
boolean |
isAcceptedBy(ProjectACL.AccessLevel allowedLevel)
returns
true if the allowedLevel allows for accepting this level |
static boolean |
resolveAccessibility(ProjectACL.AccessLevel requestedLevel,
ProjectACL.AccessLevel allowedLevel) |
static ProjectACL.AccessLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProjectACL.AccessLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProjectACL.AccessLevel R
public static final ProjectACL.AccessLevel RW
public static ProjectACL.AccessLevel[] values()
for (ProjectACL.AccessLevel c : ProjectACL.AccessLevel.values()) System.out.println(c);
public static ProjectACL.AccessLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static boolean resolveAccessibility(ProjectACL.AccessLevel requestedLevel, ProjectACL.AccessLevel allowedLevel)
public boolean accepts(ProjectACL.AccessLevel requestedLevel)
true
if the requested level can be accepted by this access levelrequestedLevel
- public boolean isAcceptedBy(ProjectACL.AccessLevel allowedLevel)
true
if the allowedLevel allows for accepting this levelallowedLevel
- Copyright © 2016 ART Group, University of Rome, Tor Vergata. All rights reserved.