Package eu.clarin.sru.server.fcs
Enum ResourceInfo.AvailabilityRestriction
- java.lang.Object
-
- java.lang.Enum<ResourceInfo.AvailabilityRestriction>
-
- eu.clarin.sru.server.fcs.ResourceInfo.AvailabilityRestriction
-
- All Implemented Interfaces:
Serializable
,Comparable<ResourceInfo.AvailabilityRestriction>
- Enclosing class:
- ResourceInfo
public static enum ResourceInfo.AvailabilityRestriction extends Enum<ResourceInfo.AvailabilityRestriction>
Enumeration to indicate the content encoding of a layer.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTH_ONLY
Only authentication via home institution is required.NONE
No authentication is required.PERSONAL_IDENTIFIER
An additional 'userID' attribute is required for authentication.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourceInfo.AvailabilityRestriction
valueOf(String name)
Returns the enum constant of this type with the specified name.static ResourceInfo.AvailabilityRestriction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ResourceInfo.AvailabilityRestriction NONE
No authentication is required.
-
AUTH_ONLY
public static final ResourceInfo.AvailabilityRestriction AUTH_ONLY
Only authentication via home institution is required.
-
PERSONAL_IDENTIFIER
public static final ResourceInfo.AvailabilityRestriction PERSONAL_IDENTIFIER
An additional 'userID' attribute is required for authentication.
-
-
Method Detail
-
values
public static ResourceInfo.AvailabilityRestriction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ResourceInfo.AvailabilityRestriction c : ResourceInfo.AvailabilityRestriction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourceInfo.AvailabilityRestriction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-