public class DatasetInfo extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DATASET_TYPE |
static String |
EXTERNAL_TYPE |
static String |
FILE_TYPE |
static String |
PUBLISHED |
static String |
UNPUBLISHED |
Constructor and Description |
---|
DatasetInfo() |
Modifier and Type | Method and Description |
---|---|
static DatasetInfo |
copy(DatasetInfo src)
Does a deep copy of this DatasetInfo.
|
String |
getAttribution()
The Attribution for the current license.
|
String |
getAttributionLink()
A link to the attribution for this license.
|
String |
getCategory()
Gets the main category used to classify this dataset.
|
String |
getDescription()
Gets the human readable description of this dataset.
|
String |
getExternalId()
Sometimes datasets have an ID in a system outside Socrata.
|
List<Grant> |
getGrants()
Gets all the permission grants for this dataset.
|
String |
getId()
This unique ID for this dataset.
|
License |
getLicense()
Gets the license structure that defines this license.
|
String |
getLicenseId()
The unique ID for the license that applies to this dataset.
|
Metadata |
getMetadata()
Gets the metadata for this dataset
|
String |
getName()
Gets the human readable name for this dataset.
|
Map<String,Object> |
getPrivateMetadata()
Gets private metadata for this dataset.
|
String |
getPublicationStage()
Returns whether this dataset is in a published or unpublished state.
|
String |
getResourceName()
Gets the resource name for this dataset.
|
List<String> |
getRights() |
Long |
getRowsUpdatedAt()
A long representing the seconds since the epoch till this was modified.
|
List<String> |
getTags()
Gets the list of freeform tags describing this dataset.
|
String |
getViewType()
describes what type of object this is.
|
void |
setAttribution(String attribution)
The Attribution for the current license.
|
void |
setAttributionLink(String attributionLink)
A link to the attribution for this license.
|
void |
setCategory(String category)
Sets the main category used to classify this dataset.
|
void |
setDescription(String description)
Sets the human readable description of this dataset.
|
void |
setExternalId(String externalId)
Sometimes datasets have an ID in a system outside Socrata.
|
void |
setGrants(List<Grant> grants)
Sets all the permission grants for this dataset.
|
void |
setId(String id)
Sets the unique ID for this dataset.
|
void |
setLicense(License license)
Sets the license structure that defines this license.
|
void |
setLicenseId(String licenseId)
The unique ID for the license that applies to this dataset.
|
void |
setMetadata(Metadata metadata)
Sets the metadata for this dataset
|
void |
setName(String name)
Gets the human readable name for this dataset.
|
void |
setPrivateMetadata(Map<String,Object> privateMetadata)
Sets private metadata for this dataset.
|
void |
setPublicationStage(String publicationStage)
This should really only be called by the system.
|
void |
setResourceName(String resourceName)
Sets the resource name for this dataset.
|
void |
setRights(List<String> rights) |
void |
setRowsUpdatedAt(Long rowsUpdatedAt)
This method should only be called by the system, since the system is responsible for setting the
modified date.
|
void |
setTags(List<String> tags)
Gets the list of freeform tags describing this dataset.
|
void |
setupLicense(LicenseInfo licenseInfo,
String attribution,
String attributionLink)
Sets up the license portion of the dataset info from a LicenseInfo and an attribution.
|
void |
setViewType(String viewType)
Sets what type of object this is.
|
public static final String DATASET_TYPE
public static final String FILE_TYPE
public static final String EXTERNAL_TYPE
public static final String PUBLISHED
public static final String UNPUBLISHED
public static DatasetInfo copy(DatasetInfo src)
src
- public String getResourceName()
public void setResourceName(String resourceName)
public String getViewType()
public void setViewType(String viewType)
viewType
- the object typepublic String getAttribution()
public void setAttribution(String attribution)
attribution
- the attribution for this license.public String getAttributionLink()
public void setAttributionLink(String attributionLink)
attributionLink
- the link to the attribution for this license.public String getCategory()
public void setCategory(String category)
category
- main category used to classify this dataset.public String getDescription()
public void setDescription(String description)
description
- human readable description for this dataset.public String getExternalId()
public void setExternalId(String externalId)
externalId
- the external IDpublic String getId()
public void setId(String id)
id
- the unique Id of the datasetpublic void setupLicense(LicenseInfo licenseInfo, String attribution, String attributionLink)
licenseInfo
- the license info about this dataset's licenseattribution
- the attribution for this license. This is required when licenseInfo.attributionRequired is trueattributionLink
- a link for the attribution for this license. This is recommended when licenseInfo.attributionRequired is truepublic License getLicense()
public void setLicense(License license)
public String getLicenseId()
public void setLicenseId(String licenseId)
licenseId
- unique id for the license for this dataset.public Metadata getMetadata()
public void setMetadata(Metadata metadata)
metadata
- metadata object for this datasetpublic String getName()
public void setName(String name)
name
- human readable name for this dataset.public Map<String,Object> getPrivateMetadata()
public void setPrivateMetadata(Map<String,Object> privateMetadata)
privateMetadata
- the private metadata for this datasetpublic String getPublicationStage()
public void setPublicationStage(String publicationStage)
publicationStage
- "published" if this dataset is published
"unpublished" if this dataset is not publishedpublic Long getRowsUpdatedAt()
public void setRowsUpdatedAt(Long rowsUpdatedAt)
rowsUpdatedAt
- A long representing the seconds since the epoch till this was modified.public List<String> getTags()
public void setTags(List<String> tags)
public List<Grant> getGrants()
Copyright © 2013. All Rights Reserved.