Package ddf.catalog.source.impl
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSourceDescriptorImpl(String sourceId, Set<ddf.catalog.data.ContentType> catalogedTypes) Instantiates a new SourceDescriptorImpl.SourceDescriptorImpl(String sourceId, Set<ddf.catalog.data.ContentType> catalogedTypes, List<ddf.action.Action> actions) Instantiates a new SourceDescriptorImpl. -
Method Summary
Modifier and TypeMethodDescriptionList<ddf.action.Action> Set<ddf.catalog.data.ContentType> booleanvoidsetAvailable(boolean isAvailable) Sets the available.voidsetContentTypes(Set<ddf.catalog.data.ContentType> catalogedTypes) Sets the content types.voidsetLastAvailabilityDate(Date lastAvailableDate) Sets the last availability date.voidsetSiteName(String siteName) Sets the source id.Methods inherited from class ddf.catalog.util.impl.DescribableImpl
getDescription, getId, getOrganization, getTitle, getVersion, setDescription, setId, setOrganization, setShortname, setTitle, setVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ddf.catalog.util.Describable
getDescription, getId, getOrganization, getTitle, getVersion
-
Field Details
-
sourceId
-
catalogedTypes
The content types contained in this source -
isAvailable
protected boolean isAvailable -
lastAvailableDate
-
-
Constructor Details
-
SourceDescriptorImpl
Instantiates a new SourceDescriptorImpl.- Parameters:
sourceId- the source's idcatalogedTypes- 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 idcatalogedTypes- the cataloged typesactions- list of actions
-
-
Method Details
-
getSourceId
- Specified by:
getSourceIdin interfaceddf.catalog.source.SourceDescriptor
-
setSiteName
Sets the source id.- Parameters:
siteName- the sourceId
-
getContentTypes
- Specified by:
getContentTypesin interfaceddf.catalog.source.SourceDescriptor
-
setContentTypes
Sets the content types.- Parameters:
catalogedTypes- the new content types
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein interfaceddf.catalog.source.SourceDescriptor
-
setAvailable
public void setAvailable(boolean isAvailable) Sets the available.- Parameters:
isAvailable- the new available
-
getLastAvailabilityDate
- Specified by:
getLastAvailabilityDatein interfaceddf.catalog.source.SourceDescriptor
-
getActions
- Specified by:
getActionsin interfaceddf.catalog.source.SourceDescriptor
-
setLastAvailabilityDate
Sets the last availability date.- Parameters:
lastAvailableDate- the new last availability date
-