Class PortalPrivilege


  • public final class PortalPrivilege
    extends java.lang.Object
    Represents a particular privilege possessed by a portal user. A privilege permits the user to perform specific operations on the portal.
    Since:
    100.0.0
    • Method Detail

      • getRealm

        public PortalPrivilege.Realm getRealm()
        Gets the realm this privilege belongs to.
        Returns:
        the realm
        Since:
        100.0.0
      • getRole

        public PortalPrivilege.Role getRole()
        Gets the role this privilege belongs to.
        Returns:
        the role
        Since:
        100.0.0
      • getType

        public PortalPrivilege.Type getType()
        Gets the particular type of operation this privilege permits.
        Returns:
        the type of operation
        Since:
        100.0.0
      • getTypeName

        public java.lang.String getTypeName()
        Gets the type name for this privilege.

        Generally, the type name is the string representation of the PortalPrivilege.Type returned by getType(). However if the type is PortalPrivilege.Type.UNKNOWN, the type name is set with the type found in the portal privilege JSON. This allows the API to deal with new portal privilege types added since the latest API release.

        Returns:
        the type name for this privilege
        Since:
        100.0.0
      • getSubtype

        public PortalPrivilege.Subtype getSubtype()
        Gets the fine-grained operation subtype this privilege permits.

        Subtypes control access to a few fine-grained operations. The value is PortalPrivilege.Subtype.NONE unless this privilege relates to a fine-grained operation.

        Returns:
        the fine-grained operation subtype this privilege permits
        Since:
        100.12.0
      • getSubtypeName

        public java.lang.String getSubtypeName()
        Gets the subtype name for this privilege.

        Generally, the subtype name is the string representation of the getSubtype(). However, if the subtype is PortalPrivilege.Subtype.UNKNOWN, the subtype name is set with the subtype string found in the portal privilege JSON. This allows this API to handle new portal privilege subtypes added at the server but not yet exposed in ArcGIS Runtime.

        Returns:
        the subtype name for this privilege
        Since:
        100.12.0