Enum ProjectMetadataRole

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ProjectMetadataRole>

    public enum ProjectMetadataRole
    extends java.lang.Enum<ProjectMetadataRole>
    Role for a user's level of metadata access for a project.
    • Method Detail

      • values

        public static ProjectMetadataRole[] 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 (ProjectMetadataRole c : ProjectMetadataRole.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ProjectMetadataRole 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<ProjectMetadataRole>
      • fromString

        public static ProjectMetadataRole fromString​(java.lang.String code)
        Get a role from the given string code
        Parameters:
        code - the string to get a role for
        Returns:
        The requested ProjectRole
      • getLevel

        public int getLevel()