public interface Resource extends CentraSiteRegistryObject
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getContentTypes()
Get the content types supported by this resource.
|
java.util.List<CentraSiteFile> |
getDocuments()
Get the list of documents attached for this resource.
|
java.util.Set<java.lang.String> |
getHttpMethods()
Gets the HTTP methods supported by this resource.
|
java.util.Set<java.lang.String> |
getQueryStrings()
Get the query strings for this resource.
|
java.lang.String |
getSchemaAccessUrl(java.lang.String schemaId)
Get the schema access URL for the resource.
|
java.lang.String |
getSchemaId()
Get the UUID for the attached schema for the resource.
|
java.util.List<CentraSiteRegistryObject> |
getXmlSchemas()
Get the XML schemas attached to the resource.
|
void |
setContentTypes(java.util.Set<java.lang.String> contentTypes)
Set the content types supported by this resource.
|
void |
setDocuments(java.util.List<CentraSiteFile> documents)
Set the documents to be attached to the resource.
|
void |
setHttpMethods(java.util.Set<java.lang.String> httpMethods)
Set the HTTP methods supported by this resource.
|
void |
setId(java.lang.String id)
Set the UUID key for the resource.
|
void |
setQueryStrings(java.util.Set<java.lang.String> queryStrings)
Set the query strings for this resource.
|
void |
setSchemaId(java.lang.String schemaId)
Set the schema id for the resource.
|
getConsumers, getDescription, getDescription, getDisplayVersion, getLCMAssignment, getLocalName, getMandatoryAttributeProfiles, getName, getName, getNameSpace, getNextVersion, getNextVersions, getOrganization, getOwner, getPendingApprovals, getPreviousVersion, getPreviousVersions, getRegistryObject, getSubscribers, getSystemVersion, getTitle, getUserVersion, getVisiblePrimaryProfiles, getVisibleProfile, isDeployedOn, isLatestVersionObject, isPropagatePermissions, isPropagateProfilePermissions, setDescription, setDescription, setDisplayVersion, setLCMState, setLocalName, setName, setName, setNameSpace, setOrganization, setOwner, setPropagatePermissions, setPropagateProfilePermissions, setUserVersion
delete, getAttributeLink, getAttributeValue, getAttributeValue, getAttributeValue, getId, getType, isModified, isReadOnly, save, setAttributeValue, setAttributeValue, setAttributeValue
void setId(java.lang.String id)
id
- The resource id to setjava.util.Set<java.lang.String> getHttpMethods() throws CLLException
Set
of the HTTP methods supported by the resourceCLLException
- If an error occurs while accessing the datavoid setHttpMethods(java.util.Set<java.lang.String> httpMethods) throws CLLException
httpMethods
- The Set
of HTTP methods supported by this resourceCLLException
- If an error occurs while trying to set the HTTP methods for the resourcejava.util.Set<java.lang.String> getContentTypes() throws CLLException
Set
of supported content typesCLLException
- If an error occurs while trying to get the supported content typesvoid setContentTypes(java.util.Set<java.lang.String> contentTypes) throws CLLException
contentTypes
- The Set
of content types supported by this resourceCLLException
- If an error occurs while trying to set the supported content typesjava.util.Set<java.lang.String> getQueryStrings() throws CLLException
Set
of query strings for this resourceCLLException
- If an error occurs while trying to get the query stringsvoid setQueryStrings(java.util.Set<java.lang.String> queryStrings) throws CLLException
queryStrings
- The query strings to setCLLException
- If an error occurs while trying to set the query stringsjava.lang.String getSchemaId()
void setSchemaId(java.lang.String schemaId)
schemaId
- The schema id to set for the resourcejava.util.List<CentraSiteFile> getDocuments() throws CLLException
List
of CentraSiteFile
documents attached for this resourceCLLException
- If an error occurs while trying to fetch the documentsvoid setDocuments(java.util.List<CentraSiteFile> documents) throws CLLException
documents
- The List
of documents to attach to the resourceCLLException
- If an error occurs while trying to set the documentsjava.util.List<CentraSiteRegistryObject> getXmlSchemas() throws CLLException
List
of CentraSiteRegistryObject
instancesCLLException
- If an error occurs while trying to get the XML schemasjava.lang.String getSchemaAccessUrl(java.lang.String schemaId) throws CLLException
schemaId
- The schema id for the XML schemaCLLException
- If an error occurs while trying to get the schema access URL.