com.sas.services.information.metadata
Interface ContentInterface

All Superinterfaces:
MetadataInterface,
All Known Implementing Classes:
Content,

public interface ContentInterface
extends MetadataInterface

Manipulation of the actual content of a Content smart object


Fields inherited from interface com.sas.services.information.metadata.MetadataInterface
PERMISSION_READMETADATA, PERMISSION_WRITEMETADATA
 
Method Summary
 byte[] getContentAsBytes()
          Get the content as a byte array
 InputStream getContentAsStream()
          Get the content as an input stream
 String getContentAsString()
          Get the content as a String
 String getContentType()
          Gets the content type for the object.
 String getProperty(String propertyName)
          Deprecated. As of 9.1.3SP4, replaced by MetadataInterface.getAttribute(String)
 void setContent(String content)
          Set the content from a String
 void setContentFromBytes(byte[] content)
          Set the content from a byte array
 void setContentFromStream(InputStream content)
          Set the content from a stream.For remote deployment the InputStream should be wrapped in an InputStreamAdapter
 void setContentType(String contentType)
          Set the content type for the object.
 void setProperty(String propertyName, String propertyValue)
          Deprecated. As of 9.1.3SP4, replaced by MetadataInterface.setAttribute(String, String)
 
Methods inherited from interface com.sas.services.information.metadata.MetadataInterface
add, addAccessControl, addAttribute, addAttributes, addExtension, addKeyword, addPermissions, addRemark, addTransactionListener, checkin, checkout, commit, copyTo, delete, deleteAttribute, deleteAttributes, getAccessControls, getAttribute, getAttributes, getCreateDate, getDescription, getEntityKey, getEntityURL, getExtensions, getGUID, getIdentities, getKeywords, getModifyDate, getName, getParentPath, getParents, getPath, getPaths, getPathUrl, getPathUrl, getPermission, getPermissions, getPermissions, getPreviousVersionNames, getRemarksList, getReposId, getRepository, getRepositoryEntity, getReposKey, getTrackingId, getType, getVersion, isAuthorized, isLoggingEnabled, logMessage, mapNameToFilesystem, mapUrlToFilesystem, moveTo, newServiceObject, refresh, removeAccessControl, removeExtension, removeKeyword, removePermissions, rollback, setAttribute, setAttributes, setDescription, setGUID, setKeywords, setName, setPermission, setRemarksList, setRepository, startTransaction, transactionEvent, uncheckout, update, version
 

Method Detail

getContentType

public String getContentType()
                      throws RemoteException
Gets the content type for the object. This would be the MIME type for the content

getContentAsStream

public InputStream getContentAsStream()
                               throws RemoteException
Get the content as an input stream

getContentAsBytes

public byte[] getContentAsBytes()
                         throws RemoteException
Get the content as a byte array

getContentAsString

public String getContentAsString()
                          throws RemoteException
Get the content as a String

setContentType

public void setContentType(String contentType)
                    throws RemoteException
Set the content type for the object.

setContent

public void setContent(String content)
                throws RemoteException
Set the content from a String

setContentFromStream

public void setContentFromStream(InputStream content)
                          throws RemoteException
Set the content from a stream.For remote deployment the InputStream should be wrapped in an InputStreamAdapter

setContentFromBytes

public void setContentFromBytes(byte[] content)
                         throws RemoteException
Set the content from a byte array

setProperty

public void setProperty(String propertyName,
                        String propertyValue)
                 throws RemoteException
Deprecated. As of 9.1.3SP4, replaced by MetadataInterface.setAttribute(String, String)

Set the value of a property
Parameters:
propertyName - The name, including namespace, of the property to be set
propertyValue - The value of the property to be set

getProperty

public String getProperty(String propertyName)
                   throws RemoteException
Deprecated. As of 9.1.3SP4, replaced by MetadataInterface.getAttribute(String)

Get the value of a property
Parameters:
propertyName - The name, including namespace, of the property to get
Returns:
String The value of the property




Copyright © 2006 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:28:56