Class SourceDescriptorImpl

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

public class SourceDescriptorImpl extends DescribableImpl implements ddf.catalog.source.SourceDescriptor
The Class SourceDescriptorImpl is the default representation of a SourceDescriptor.
  • Field Details

    • sourceId

      protected String sourceId
    • catalogedTypes

      protected Set<ddf.catalog.data.ContentType> catalogedTypes
      The content types contained in this source
    • isAvailable

      protected boolean isAvailable
    • lastAvailableDate

      protected Date lastAvailableDate
  • Constructor Details

    • SourceDescriptorImpl

      public SourceDescriptorImpl(String sourceId, Set<ddf.catalog.data.ContentType> catalogedTypes)
      Instantiates a new SourceDescriptorImpl.
      Parameters:
      sourceId - the source's id
      catalogedTypes - the cataloged types
    • SourceDescriptorImpl

      public SourceDescriptorImpl(String sourceId, Set<ddf.catalog.data.ContentType> catalogedTypes, List<ddf.action.Action> actions)
      Instantiates a new SourceDescriptorImpl.
      Parameters:
      sourceId - the source's id
      catalogedTypes - the cataloged types
      actions - list of actions
  • Method Details

    • getSourceId

      public String getSourceId()
      Specified by:
      getSourceId in interface ddf.catalog.source.SourceDescriptor
    • setSiteName

      public void setSiteName(String siteName)
      Sets the source id.
      Parameters:
      siteName - the sourceId
    • getContentTypes

      public Set<ddf.catalog.data.ContentType> getContentTypes()
      Specified by:
      getContentTypes in interface ddf.catalog.source.SourceDescriptor
    • setContentTypes

      public void setContentTypes(Set<ddf.catalog.data.ContentType> catalogedTypes)
      Sets the content types.
      Parameters:
      catalogedTypes - the new content types
    • isAvailable

      public boolean isAvailable()
      Specified by:
      isAvailable in interface ddf.catalog.source.SourceDescriptor
    • setAvailable

      public void setAvailable(boolean isAvailable)
      Sets the available.
      Parameters:
      isAvailable - the new available
    • getLastAvailabilityDate

      public Date getLastAvailabilityDate()
      Specified by:
      getLastAvailabilityDate in interface ddf.catalog.source.SourceDescriptor
    • getActions

      public List<ddf.action.Action> getActions()
      Specified by:
      getActions in interface ddf.catalog.source.SourceDescriptor
    • setLastAvailabilityDate

      public void setLastAvailabilityDate(Date lastAvailableDate)
      Sets the last availability date.
      Parameters:
      lastAvailableDate - the new last availability date