|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--com.sas.services.information.metadata.Metadata
|
+--com.sas.services.information.metadata.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).
| Fields inherited from class com.sas.services.information.metadata.Metadata |
_repository, _repositoryFlag, _repositoryObject, formats, gmtZone, REPOSITORY_DAV, REPOSITORY_LDAP, REPOSITORY_NONE, REPOSITORY_OMR |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Fields inherited from interface com.sas.services.information.metadata.MetadataInterface |
PERMISSION_READMETADATA, PERMISSION_WRITEMETADATA |
| Constructor Summary | |
|
Content()
Creates a new Content object |
protected |
Content(Class subClass)
Creates a new Content object |
|
Content(Object o)
Creates a new Content object that incorporates the object passed to the constructor |
protected |
Content(Object o,
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 |
InputStream |
getContentAsStream()
Return the content of the repository entity as a stream |
String |
getContentAsString()
Return the content of the repository entity as a String |
String |
getContentType()
Gets the content type. |
String |
getProperty(String propertyName)
Get the value of a property |
String |
getType()
Get the smartobject type - this is a "content" provider |
void |
setContent(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(InputStream contentStream)
Set the content of the repository entity from an input stream. |
void |
setContentType(String contentType)
Sets the content type. |
void |
setProperty(String propertyName,
String propertyValue)
Set the value of a property |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Content()
throws RemoteException
RemoteException - if unable to export the remote object.
public Content(Object o)
throws RemoteException
o - Content object.RemoteException - if unable to export the remote object.
protected Content(Class subClass)
throws RemoteException
subClass - The subclass's class which should be used to
determine the appropriate RMI socket factories.RemoteException - in the case of network failures
protected Content(Object o,
Class subClass)
throws RemoteException
o - contentsubClass - The subclass's class which should be used to
determine the appropriate RMI socket factories.RemoteException - in the case of network failures| Method Detail |
public String getContentAsString()
throws RemoteException
getContentAsString in interface ContentInterfaceRemoteException - in the case of network failures
public InputStream getContentAsStream()
throws RemoteException
getContentAsStream in interface ContentInterfaceRemoteException - in the case of network failures
public byte[] getContentAsBytes()
throws RemoteException
getContentAsBytes in interface ContentInterfaceRemoteException - in the case of network failures
public String getContentType()
throws RemoteException
getContentType in interface ContentInterfaceRemoteException - in the case of network failures
public void setContentType(String contentType)
throws RemoteException
setContentType in interface ContentInterfacecontentType - The media type for the contentRemoteException - in the case of network failures
public void setContent(String content)
throws RemoteException
setContent in interface ContentInterfacecontent - A byte array with the actual content for the entityRemoteException - in the case of network failures
public void setContentFromStream(InputStream contentStream)
throws RemoteException
InputStreamAdaptersetContentFromStream in interface ContentInterfacecontentStream - An input stream representing the contentRemoteException - in the case of network failures
public void setContentFromBytes(byte[] content)
throws RemoteException
setContentFromBytes in interface ContentInterfacecontent - A byte array representing the contentRemoteException - in the case of network failures
public String getType()
throws RemoteException
getType in interface MetadataInterfacegetType in class MetadataRemoteException - in the case of network failures
public void setProperty(String propertyName,
String propertyValue)
throws RemoteException
setProperty in interface ContentInterfacepropertyName - The name, including namespace, of the property to be setpropertyValue - The value of the property to be set
public String getProperty(String propertyName)
throws RemoteException
getProperty in interface ContentInterfacepropertyName - The name, including namespace, of the property to get
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||