|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.information.metadata.Content
public class Content
Content is an example of a smartobject that surfaces content from the underlying repository entity (DAV is an example a repository where entities have content).
Field Summary |
---|
Fields inherited from class com.sas.services.information.metadata.Metadata |
---|
_actionInterfaces, _children, _isCompatible, _isDestroyPending, _isReadCompatible, _myRefreshInterval, _myState, _omrCreateDate, _omrModifyDate, _repository, _repositoryFlag, _repositoryObject, _treeRefreshTime, formats, gmtZone, OMSOBJ_STRING, REPOSITORY_DAV, REPOSITORY_LOMR, REPOSITORY_NONE, REPOSITORY_OMR, SLASH |
Fields inherited from interface com.sas.services.information.metadata.MetadataInterface |
---|
METADATA_STATE_DELETED, METADATA_STATE_DESTROYED, METADATA_STATE_NEW, METADATA_STATE_NORMAL, PERMISSION_READMETADATA, PERMISSION_WRITEMETADATA |
Constructor Summary | |
---|---|
|
Content()
Creates a new Content object |
protected |
Content(java.lang.Class subClass)
Creates a new Content object |
|
Content(java.lang.Object o)
Creates a new Content object that incorporates the object passed to the constructor |
protected |
Content(java.lang.Object o,
java.lang.Class subClass)
Creates a new Content object that incorporates the object passed to the constructor |
Method Summary | |
---|---|
byte[] |
getContentAsBytes()
Return the content of the repository entity as a byte array |
java.io.InputStream |
getContentAsStream()
Return the content of the repository entity as a stream |
java.lang.String |
getContentAsString()
Return the content of the repository entity as a String |
java.lang.String |
getContentType()
Gets the content type. |
java.lang.String |
getProperty(java.lang.String propertyName)
Deprecated. As of release 9.2, replaced by MetadataInterface.getAttribute(String) |
java.lang.String |
getType()
Get the smartobject type - this is a "content" provider |
void |
setContent(java.lang.String content)
Set the content of the repository entity |
void |
setContentFromBytes(byte[] content)
Set the content of the repository entity from an input stream |
void |
setContentFromStream(java.io.InputStream contentStream)
Set the content of the repository entity from an input stream. |
void |
setContentType(java.lang.String contentType)
Sets the content type. |
void |
setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Deprecated. As of release 9.2, replaced by MetadataInterface.setAttribute(String,String) |
Methods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface |
---|
addProcessorInterface, getContainer, getIdentifier, getName, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor |
Constructor Detail |
---|
public Content() throws java.rmi.RemoteException
java.rmi.RemoteException
- if unable to export the remote object.public Content(java.lang.Object o) throws java.rmi.RemoteException
o
- Content object.
java.rmi.RemoteException
- if unable to export the remote object.protected Content(java.lang.Class subClass) throws java.rmi.RemoteException
subClass
- The subclass's class which should be used to
determine the appropriate RMI socket factories.
java.rmi.RemoteException
- in the case of network failuresprotected Content(java.lang.Object o, java.lang.Class subClass) throws java.rmi.RemoteException
o
- contentsubClass
- The subclass's class which should be used to
determine the appropriate RMI socket factories.
java.rmi.RemoteException
- in the case of network failuresMethod Detail |
---|
public java.lang.String getContentAsString() throws java.rmi.RemoteException
getContentAsString
in interface ContentInterface
java.rmi.RemoteException
- in the case of network failurespublic java.io.InputStream getContentAsStream() throws java.rmi.RemoteException
getContentAsStream
in interface ContentInterface
java.rmi.RemoteException
- in the case of network failurespublic byte[] getContentAsBytes() throws java.rmi.RemoteException
getContentAsBytes
in interface ContentInterface
java.rmi.RemoteException
- in the case of network failurespublic java.lang.String getContentType() throws java.rmi.RemoteException
getContentType
in interface ContentInterface
java.rmi.RemoteException
- in the case of network failurespublic void setContentType(java.lang.String contentType) throws java.rmi.RemoteException
setContentType
in interface ContentInterface
contentType
- The media type for the content
java.rmi.RemoteException
- in the case of network failurespublic void setContent(java.lang.String content) throws java.rmi.RemoteException
setContent
in interface ContentInterface
content
- A byte array with the actual content for the entity
java.rmi.RemoteException
- in the case of network failurespublic void setContentFromStream(java.io.InputStream contentStream) throws java.rmi.RemoteException
InputStreamAdapter
setContentFromStream
in interface ContentInterface
contentStream
- An input stream representing the content
java.rmi.RemoteException
- in the case of network failurespublic void setContentFromBytes(byte[] content) throws java.rmi.RemoteException
setContentFromBytes
in interface ContentInterface
content
- A byte array representing the content
java.rmi.RemoteException
- in the case of network failurespublic java.lang.String getType() throws java.rmi.RemoteException
getType
in interface MetadataInterface
getType
in class Metadata
java.rmi.RemoteException
- in the case of network failurespublic void setProperty(java.lang.String propertyName, java.lang.String propertyValue) throws java.rmi.RemoteException
MetadataInterface.setAttribute(String,String)
setProperty
in interface ContentInterface
propertyName
- The name, including namespace, of the property to be setpropertyValue
- The value of the property to be set
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getProperty(java.lang.String propertyName) throws java.rmi.RemoteException
MetadataInterface.getAttribute(String)
getProperty
in interface ContentInterface
propertyName
- The name, including namespace, of the property to get
java.rmi.RemoteException
- In the event of remote object failure.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |