Package oracle.pgx.config
Enum GraphSharingOption
- java.lang.Object
-
- java.lang.Enum<GraphSharingOption>
-
- oracle.pgx.config.GraphSharingOption
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GraphSharingOption>
public enum GraphSharingOption extends java.lang.Enum<GraphSharingOption>
The graph sharing option determines if and how graph data might be shared. depends if the graph source is known or not. we consider a graph source as known when the graph is loaded directly from the database (not a mutation result). and the connection details are provided by the Realm implementation not the graph config all other graphs are considered with unknown / non-traceable source.- Since:
- 23.4
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOW_DATA_SHARING
Indicates that all graphs can be published and graph sharing between multiple users is supported using PgxGraph#grantPermissionALLOW_TRACEABLE_DATA_SHARING_WITHIN_SAME_USER
Indicates that graphs without traceable source cannot be published and graph sharing between multiple users is not supportedDISALLOW_DATA_SHARING
Indicates that publish API is not allowed regardless of the graph source and graph sharing between multiple users is not supported
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GraphSharingOption
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GraphSharingOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISALLOW_DATA_SHARING
public static final GraphSharingOption DISALLOW_DATA_SHARING
Indicates that publish API is not allowed regardless of the graph source and graph sharing between multiple users is not supported
-
ALLOW_TRACEABLE_DATA_SHARING_WITHIN_SAME_USER
public static final GraphSharingOption ALLOW_TRACEABLE_DATA_SHARING_WITHIN_SAME_USER
Indicates that graphs without traceable source cannot be published and graph sharing between multiple users is not supported
-
ALLOW_DATA_SHARING
public static final GraphSharingOption ALLOW_DATA_SHARING
Indicates that all graphs can be published and graph sharing between multiple users is supported using PgxGraph#grantPermission
-
-
Method Detail
-
values
public static GraphSharingOption[] 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 (GraphSharingOption c : GraphSharingOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GraphSharingOption valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-