Class AbstractUserObject

  • Direct Known Subclasses:
    User, UserGroup

    public abstract class AbstractUserObject
    extends Object
    Abstract NetXMS user database object.
    • Constructor Detail

      • AbstractUserObject

        public AbstractUserObject​(String name,
                                  String type)
        Default constructor
        Parameters:
        name - object name
      • AbstractUserObject

        public AbstractUserObject​(AbstractUserObject src)
        Copy constructor
        Parameters:
        src - source object
      • AbstractUserObject

        public AbstractUserObject​(org.netxms.base.NXCPMessage msg,
                                  String type)
        Create object from NXCP message
        Parameters:
        msg - Message containing object's data
        type - object type
    • Method Detail

      • fillMessage

        public void fillMessage​(org.netxms.base.NXCPMessage msg)
        Fill NXCP message with object data
        Parameters:
        msg - destination message
      • isDeleted

        public boolean isDeleted()
        Returns:
        true if user is marked as deleted
      • getId

        public long getId()
        Returns:
        the id
      • setId

        public void setId​(long id)
        Parameters:
        id - the id to set
      • getName

        public String getName()
        Returns:
        the name
      • setName

        public void setName​(String name)
        Parameters:
        name - the name to set
      • getGuid

        public UUID getGuid()
        Returns:
        the guid
      • getLdapDn

        public String getLdapDn()
        Returns:
        the ldapDn
      • getLdapId

        public String getLdapId()
        Returns:
        the ldapId
      • getSystemRights

        public long getSystemRights()
        Returns:
        the systemRights
      • setSystemRights

        public void setSystemRights​(long systemRights)
        Parameters:
        systemRights - the systemRights to set
      • getFlags

        public int getFlags()
        Returns:
        the flags
      • setFlags

        public void setFlags​(int flags)
        Parameters:
        flags - the flags to set
      • getDescription

        public String getDescription()
        Returns:
        the description
      • setDescription

        public void setDescription​(String description)
        Parameters:
        description - the description to set
      • getCustomAttribute

        public String getCustomAttribute​(String name)
        Get custom attribute
        Parameters:
        name - Name of the attribute
        Returns:
        Custom attribute value
      • setCustomAttribute

        public void setCustomAttribute​(String name,
                                       String value)
        Set custom attribute's value
        Parameters:
        name - Name of the attribute
        value - New value for attribute
      • isDisabled

        public boolean isDisabled()
        Check if object is disabled
        Returns:
        true if object is disabled
      • isPasswordChangeNeeded

        public boolean isPasswordChangeNeeded()
        Check if password should be changed at next logon
        Returns:
        true if password should be changed at next logon
      • isPasswordChangeForbidden

        public boolean isPasswordChangeForbidden()
        Check if password change is forbidden
        Returns:
        true if password change is forbidden
      • getCreationTime

        public Date getCreationTime()
        Get creation date
        Returns:
        creation date