Class MaskableImpl

java.lang.Object
ddf.catalog.util.impl.DescribableImpl
ddf.catalog.util.impl.MaskableImpl
All Implemented Interfaces:
ddf.catalog.util.Describable, ddf.catalog.util.Maskable, org.codice.ddf.platform.services.common.Describable

public class MaskableImpl extends DescribableImpl implements ddf.catalog.util.Maskable
Implementation of the Maskable interface that provides methods to set the masked ID of the item and the ID of the item if it has not yet been masked. Once the item's ID is masked it cannot be updated again. At that point, you can only change its value indirectly by changing the site name of DDF.
  • Constructor Details

    • MaskableImpl

      public MaskableImpl()
  • Method Details

    • maskId

      public void maskId(String id)
      Sets the masked ID of this maskable item to the specified ID, and then sets an internal flag indicating that the masked ID cannot be changed.
      Specified by:
      maskId in interface ddf.catalog.util.Maskable
    • setId

      public void setId(String id)
      Sets the ID of the maskable item if it is not currently masked. If this item is already masked, then its ID is not updated to the specified input ID.
      Overrides:
      setId in class DescribableImpl
      Parameters:
      id -