Class ProtectedRangeImpl

java.lang.Object
io.keikai.model.impl.ProtectedRangeImpl
All Implemented Interfaces:
SProtectedRange, Serializable

public class ProtectedRangeImpl extends Object implements SProtectedRange, Serializable
Default implementation of SProtectedRange.
Since:
7.0.0
See Also:
  • Constructor Details

    • ProtectedRangeImpl

      public ProtectedRangeImpl(String name, CellRegion range, String passwordHash, String securityDescriptor)
      Creates a new protected range.
      Parameters:
      name - the range name
      range - the cell region
      passwordHash - the hashed password, or null
      securityDescriptor - the security descriptor, or null
    • ProtectedRangeImpl

      public ProtectedRangeImpl(String name, CellRegion range, String passwordHash)
      Convenience constructor without security descriptor.
      Parameters:
      name - the range name
      range - the cell region
      passwordHash - the hashed password, or null
  • Method Details

    • getName

      public String getName()
      Description copied from interface: SProtectedRange
      Returns the name (title) of this protected range.
      Specified by:
      getName in interface SProtectedRange
      Returns:
      the range name
    • getRange

      public CellRegion getRange()
      Description copied from interface: SProtectedRange
      Returns the cell region covered by this protected range.
      Specified by:
      getRange in interface SProtectedRange
      Returns:
      the cell region
    • getPasswordHash

      public String getPasswordHash()
      Description copied from interface: SProtectedRange
      Returns the hashed password for this protected range, or null if none.
      Specified by:
      getPasswordHash in interface SProtectedRange
      Returns:
      the password hash
    • getSecurityDescriptor

      public String getSecurityDescriptor()
      Description copied from interface: SProtectedRange
      Returns the security descriptor for this protected range, or null if none. This is typically a Windows SDDL string for AD-based permissions.
      Specified by:
      getSecurityDescriptor in interface SProtectedRange
      Returns:
      the security descriptor
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object