Class UserDirectory

java.lang.Object
africa.absa.inception.security.UserDirectory
All Implemented Interfaces:
Serializable

@Entity public class UserDirectory extends Object implements Serializable
The UserDirectory class holds the information for a user directory.
Author:
Marcus Portmann
See Also:
  • Constructor Details

    • UserDirectory

      public UserDirectory()
      Constructs a new UserDirectory.
  • Method Details

    • equals

      public boolean equals(Object object)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      object - the reference object with which to compare
      Returns:
      true if this object is the same as the object argument otherwise false
    • getConfiguration

      public String getConfiguration()
      Returns the XML configuration data for the user directory.
      Returns:
      the XML configuration data for the user directory
    • getCreated

      public LocalDateTime getCreated()
      Returns the date and time the user directory was created.
      Returns:
      the date and time the user directory was created
    • getId

      public UUID getId()
      Returns the ID for the user directory.
      Returns:
      the ID for the user directory
    • getName

      public String getName()
      Returns the name of the user directory.
      Returns:
      the name of the user directory
    • getParameters

      public List<UserDirectoryParameter> getParameters()
      Returns the parameters for the user directory.
      Returns:
      the parameters for the user directory
    • getTenants

      public Set<Tenant> getTenants()
      Returns the tenants the user directory is associated with.
      Returns:
      the tenants the user directory is associated with
    • getType

      public String getType()
      Returns the code for the user directory type.
      Returns:
      the code for the user directory type
    • getUpdated

      public LocalDateTime getUpdated()
      Returns the date and time the user directory was last updated.
      Returns:
      the date and time the user directory was last updated
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for the object
    • setConfiguration

      public void setConfiguration(String configuration) throws InvalidConfigurationException
      Set the XML configuration data for the user directory.
      Parameters:
      configuration - the XML configuration data for the user directory
      Throws:
      InvalidConfigurationException - if the XML configuration data could not be set for the user directory
    • setId

      public void setId(UUID id)
      Set the ID for the user directory.
      Parameters:
      id - the ID for the user directory
    • setName

      public void setName(String name)
      Set the name of the user directory.
      Parameters:
      name - the name of the user directory
    • setParameters

      public void setParameters(List<UserDirectoryParameter> parameters)
      Set the parameters for the user directory.
      Parameters:
      parameters - the parameters for the user directory
    • setTenants

      public void setTenants(Set<Tenant> tenants)
      Set the tenants the user directory is associated with.
      Parameters:
      tenants - the tenants the user directory is associated with
    • setType

      public void setType(String type)
      Set the code for the user directory type.
      Parameters:
      type - the code for the user directory type
    • onCreate

      protected void onCreate()
      The Java Persistence callback method invoked before the entity is created in the database.
    • onUpdate

      protected void onUpdate()
      The Java Persistence callback method invoked before the entity is updated in the database.