Enum MCPServerDTO.AccessControlEnum
- java.lang.Object
-
- java.lang.Enum<MCPServerDTO.AccessControlEnum>
-
- org.wso2.am.integration.clients.publisher.api.v1.dto.MCPServerDTO.AccessControlEnum
-
- All Implemented Interfaces:
Serializable,Comparable<MCPServerDTO.AccessControlEnum>
- Enclosing class:
- MCPServerDTO
public static enum MCPServerDTO.AccessControlEnum extends Enum<MCPServerDTO.AccessControlEnum>
Is the MCP server restricted to certain publishers or creators or is it visible to all publishers and creators. If the accessControl restriction is NONE, this can be modified by all publishers and creators. Otherwise, it can only be viewable/modifiable by a specific set of users based on the restriction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMCPServerDTO.AccessControlEnum.Adapter
-
Enum Constant Summary
Enum Constants Enum Constant Description NONERESTRICTED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MCPServerDTO.AccessControlEnumfromValue(String value)StringgetValue()StringtoString()static MCPServerDTO.AccessControlEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static MCPServerDTO.AccessControlEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final MCPServerDTO.AccessControlEnum NONE
-
RESTRICTED
public static final MCPServerDTO.AccessControlEnum RESTRICTED
-
-
Method Detail
-
values
public static MCPServerDTO.AccessControlEnum[] 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 (MCPServerDTO.AccessControlEnum c : MCPServerDTO.AccessControlEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MCPServerDTO.AccessControlEnum 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
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<MCPServerDTO.AccessControlEnum>
-
fromValue
public static MCPServerDTO.AccessControlEnum fromValue(String value)
-
-