org.virtualbox_7_1
Enum SymlinkPolicy

java.lang.Object
  extended by java.lang.Enum<SymlinkPolicy>
      extended by org.virtualbox_7_1.SymlinkPolicy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SymlinkPolicy>

public enum SymlinkPolicy
extends java.lang.Enum<SymlinkPolicy>

Shared Folder Symbolic Link Security Policies Interface ID: {A818472E-215D-4279-8AF8-EAC4C0517BCC}


Enum Constant Summary
AllowedInShareSubtree
          Users in the guest VM are allowed to create symbolic links within the Shared Folder so long as the target remains in the Shared Folder or within the subtree of the Shared Folder.
AllowedToAnyTarget
          Users in the guest VM are allowed to create symbolic links within the Shared Folder and its subtree as well as to other targets via either relative pathnames or absolute pathnames.
AllowedToRelativeTargets
          Users in the guest VM are allowed to create symbolic links within the Shared Folder to targets within the Shared Folder and its subtree as well as to relative targets (../) outside of the Shared Folder.
Forbidden
          Users in the guest VM are not able to create symbolic links inside the Shared Folder.
None
          No symlink policy set (never used by the API).
 
Method Summary
static SymlinkPolicy fromValue(long v)
           
static SymlinkPolicy fromValue(java.lang.String v)
           
 int value()
           
static SymlinkPolicy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SymlinkPolicy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

None

public static final SymlinkPolicy None
No symlink policy set (never used by the API).


Forbidden

public static final SymlinkPolicy Forbidden
Users in the guest VM are not able to create symbolic links inside the Shared Folder.


AllowedInShareSubtree

public static final SymlinkPolicy AllowedInShareSubtree
Users in the guest VM are allowed to create symbolic links within the Shared Folder so long as the target remains in the Shared Folder or within the subtree of the Shared Folder.


AllowedToRelativeTargets

public static final SymlinkPolicy AllowedToRelativeTargets
Users in the guest VM are allowed to create symbolic links within the Shared Folder to targets within the Shared Folder and its subtree as well as to relative targets (../) outside of the Shared Folder.


AllowedToAnyTarget

public static final SymlinkPolicy AllowedToAnyTarget
Users in the guest VM are allowed to create symbolic links within the Shared Folder and its subtree as well as to other targets via either relative pathnames or absolute pathnames.

Method Detail

values

public static SymlinkPolicy[] 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 (SymlinkPolicy c : SymlinkPolicy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SymlinkPolicy 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 name
java.lang.NullPointerException - if the argument is null

value

public int value()

fromValue

public static SymlinkPolicy fromValue(long v)

fromValue

public static SymlinkPolicy fromValue(java.lang.String v)