com.ibm.as400.access

Class UserPermission

  • java.lang.Object
    • com.ibm.as400.access.UserPermission
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int GROUPINDICATOR_GROUP
      Constant indicating that this user profile is a group.
      static int GROUPINDICATOR_SPECIALVALUE
      Constant indicating that this user is neither a user nor a group.
      static int GROUPINDICATOR_USER
      Constant indicating that this user profile is a user.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object clone()
      Returns a copy of this object.
      int getGroupIndicator()
      Returns the value indicating if the user profile is a group profile.
      java.lang.String getUserID()
      Returns the user profile name for this permission.
      boolean isAuthorizationListManagement()
      Indicates whether the user has the authority of authorization list management.
      boolean isFromAuthorizationList()
      Indicates whether the user permission is from authorization list.
      void setAuthorizationListManagement(boolean autListMgt)
      Sets the authority of authorization list management.
      void setFromAuthorizationList(boolean fromAutList)
      Sets the permission of user as coming from an authorization list.
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • GROUPINDICATOR_SPECIALVALUE

        public static final int GROUPINDICATOR_SPECIALVALUE
        Constant indicating that this user is neither a user nor a group. It may be a *PUBLIC, *NTWIRF, or *NTWEFF.
        See Also:
        Constant Field Values
      • GROUPINDICATOR_USER

        public static final int GROUPINDICATOR_USER
        Constant indicating that this user profile is a user.
        See Also:
        Constant Field Values
      • GROUPINDICATOR_GROUP

        public static final int GROUPINDICATOR_GROUP
        Constant indicating that this user profile is a group.
        See Also:
        Constant Field Values
    • Method Detail

      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Returns a copy of this object.
        Overrides:
        clone in class java.lang.Object
        Returns:
        A newly created UserPermission that is a copy of this one
        Throws:
        java.lang.CloneNotSupportedException
      • getGroupIndicator

        public int getGroupIndicator()
        Returns the value indicating if the user profile is a group profile.
        Returns:
        The value indicating if the user profile is a group profile.
      • getUserID

        public java.lang.String getUserID()
        Returns the user profile name for this permission.
        Returns:
        The user profile name for this permission.
      • isFromAuthorizationList

        public boolean isFromAuthorizationList()
        Indicates whether the user permission is from authorization list.
        Returns:
        true if the user is from authorization list; false otherwise.
      • isAuthorizationListManagement

        public boolean isAuthorizationListManagement()
        Indicates whether the user has the authority of authorization list management. It is valid only for the object which is an authorization list.
        Returns:
        true if the user has the authority of authorization list management; false otherwise.
      • setAuthorizationListManagement

        public void setAuthorizationListManagement(boolean autListMgt)
        Sets the authority of authorization list management. It is valid only for the object which is an authorizaiton list.
        Parameters:
        autListMgt - true if the user has the authority of authorization list management; false otherwise.
      • setFromAuthorizationList

        public void setFromAuthorizationList(boolean fromAutList)
        Sets the permission of user as coming from an authorization list. This is valid only if the user is *PUBLIC and the authorization list exists. If set to true, all of the other authorities will be set to false. If any of the other authorities are set to true, this value is automatically set to false.
        Parameters:
        fromAutList - true if the user is from the authorization list; false otherwise.