Class SystemUser

java.lang.Object
net.solarnetwork.dao.BasicIdentity<K>
net.solarnetwork.dao.BasicEntity<Long>
net.solarnetwork.dao.BasicLongEntity
net.solarnetwork.ocpp.domain.SystemUser
All Implemented Interfaces:
Serializable, Comparable<Long>, net.solarnetwork.dao.Entity<Long>, net.solarnetwork.domain.Differentiable<SystemUser>, net.solarnetwork.domain.Identity<Long>

public class SystemUser extends net.solarnetwork.dao.BasicLongEntity implements net.solarnetwork.domain.Differentiable<SystemUser>
An OCPP charge point system user.
Version:
1.2
Author:
matt
See Also:
  • Constructor Details

    • SystemUser

      public SystemUser()
      Default constructor.
    • SystemUser

      public SystemUser(Long id, Instant created)
      Constructor.
      Parameters:
      id - the primary key
      created - the creation date
    • SystemUser

      public SystemUser(Instant created, String username, String password)
      Constructor.
      Parameters:
      created - the creation date
      username - the username
      password - the password
    • SystemUser

      public SystemUser(SystemUser other)
      Copy constructor.
      Parameters:
      other - the other system
  • Method Details

    • chargePointIdentity

      public ChargePointIdentity chargePointIdentity(String identifier)
      Create a charge point identity based on this system user.

      This implementation uses ChargePointIdentity.ANY_USER for the resolved username.

      Parameters:
      identifier - the charge point identifier
      Returns:
      the new identity, never null
    • isSameAs

      public boolean isSameAs(SystemUser other)
      Test if the properties of another entity are the same as in this instance.

      The id and created properties are not compared by this method.

      Parameters:
      other - the other entity to compare to
      Returns:
      true if the properties of this instance are equal to the other
    • differsFrom

      public boolean differsFrom(SystemUser other)
      Specified by:
      differsFrom in interface net.solarnetwork.domain.Differentiable<SystemUser>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getUsername

      public String getUsername()
      Get the username.
      Returns:
      the username
    • setUsername

      public void setUsername(String username)
      Set the username.
      Parameters:
      username - the username to set
    • getPassword

      public String getPassword()
      Get the password.
      Returns:
      the password
    • setPassword

      public void setPassword(String password)
      Set the password.
      Parameters:
      password - the password to set
    • getAllowedChargePoints

      public Set<String> getAllowedChargePoints()
      Returns:
      the allowedChargePoints
    • setAllowedChargePoints

      public void setAllowedChargePoints(Set<String> allowedChargePoints)
      Parameters:
      allowedChargePoints - the allowedChargePoints to set
    • getAllowedChargePointsValue

      public String getAllowedChargePointsValue()
      Get the allowed charge points as a comma-delimited list.
      Returns:
      the allowed charge points list value
    • setAllowedChargePointsValue

      public void setAllowedChargePointsValue(String list)
      Set the allowed charge points as a comma-delimited list.
      Parameters:
      list - the list to set
    • getAllowedChargePointsArray

      public String[] getAllowedChargePointsArray()
      Get the allowed charge points as an array.
      Returns:
      the allowed charge points array, or null
    • setAllowedChargePointsArray

      public void setAllowedChargePointsArray(String[] array)
      Set the allowed charge points as an array.
      Parameters:
      array - the array to set