com.samsung.android.penup

Enum Scope

  • java.lang.Object
    • java.lang.Enum<Scope>
      • com.samsung.android.penup.Scope
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Scope>


    public enum Scope
    extends java.lang.Enum<Scope>
    This enum provides OAuth 2.0 scopes of PEN.UP.
    Since:
    PEN.UP 1.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      POST_RESOURCES
      The scope for posting resources such as an artwork and a collection
      READ_MY_RESOURCES
      The scope for reading the user's resources such as the profile, followings, and followers
      READ_RESOURCES
      The scope for reading resources such as an artist, an artwork, a collection, and a tag
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static Scope valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Scope[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
    • Enum Constant Detail

      • READ_MY_RESOURCES

        public static final Scope READ_MY_RESOURCES
        The scope for reading the user's resources such as the profile, followings, and followers
        Since:
        PEN.UP 1.0
      • READ_RESOURCES

        public static final Scope READ_RESOURCES
        The scope for reading resources such as an artist, an artwork, a collection, and a tag
        Since:
        PEN.UP 1.0
      • POST_RESOURCES

        public static final Scope POST_RESOURCES
        The scope for posting resources such as an artwork and a collection
        Since:
        PEN.UP 1.0
    • Method Detail

      • values

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

        public static Scope 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