com.sas.services.information.metadata
Interface ContentInterface

All Superinterfaces:
MetadataInterface, PublicObjectInterface, java.rmi.Remote
All Known Implementing Classes:
Content, DavBinaryPackage, DavEvent, StoredProcessAlertItem

public interface ContentInterface
extends MetadataInterface

Manipulation of the actual content of a Content smart object


Field Summary
 
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
 
Method Summary
 byte[] getContentAsBytes()
          Get the content as a byte array.
 java.io.InputStream getContentAsStream()
          Get the content as an input stream.
 java.lang.String getContentAsString()
          Get the content as a String.
 java.lang.String getContentType()
          Gets the content type for the object.
 java.lang.String getProperty(java.lang.String propertyName)
          Deprecated. As of 9.1.3SP4, replaced by MetadataInterface.getAttribute(String)
 void setContent(java.lang.String content)
          Set the content from a String
 void setContentFromBytes(byte[] content)
          Set the content from a byte array
 void setContentFromStream(java.io.InputStream content)
          Set the content from a stream.For remote deployment the InputStream should be wrapped in an InputStreamAdapter
 void setContentType(java.lang.String contentType)
          Set the content type for the object.
 void setProperty(java.lang.String propertyName, java.lang.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, addDocument, addExtension, addGroup, addImplementor, addKeyword, addObjectProperty, addObjectProperty, addPermissions, addPrompt, addPropertySet, addRemark, addResponsibleParty, addTransactionListener, addUsedByPrototype, checkin, checkout, commit, copyTo, countAssociatedObjects, delete, deleteAttribute, deleteAttributes, destroy, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getCreateDate, getDescription, getDocuments, getEntityKey, getEntityURL, getExtensions, getGroups, getGUID, getIdentities, getImplementors, getKeywords, getLockedBy, getModifyDate, getObjectProperties, getParent, getParentPath, getParents, getPath, getPaths, getPermission, getPermissions, getPermissions, getPreviousVersionNames, getPrimaryPropertyGroup, getPrompt, getPrompts, getPropertyBag, getPropertySets, getRemarksList, getReposId, getRepository, getRepositoryEntity, getRepositoryName, getReposKey, getResponsibleParties, getState, getTrackingId, getType, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, isAuthorized, isCompatible, isDeleted, isDestroyed, isLoggingEnabled, isObjectAlive, isReadCompatible, logMessage, mapNameToFilesystem, mapUrlToFilesystem, moveTo, newServiceObject, refresh, removeAccessControl, removeDocument, removeExtension, removeGroup, removeImplementor, removeKeyword, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeUsedByPrototype, rollback, setAttribute, setAttributes, setDeleted, setDescription, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setName, setObjectProperties, setPermission, setPrimaryPropertyGroup, setPrompt, setPrompts, setRemarksList, setRepository, setUsingPrototype, startTransaction, toByteArray, transactionEvent, uncheckout, update, updateFromBag, version
 
Methods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface
addProcessorInterface, getContainer, getIdentifier, getName, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor
 

Method Detail

getContentType

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

Returns:
The content type String.
Throws:
java.rmi.RemoteException - In the event of remote object failure.

getContentAsStream

java.io.InputStream getContentAsStream()
                                       throws java.rmi.RemoteException
Get the content as an input stream.

Returns:
An InputStream to receive the content.
Throws:
java.rmi.RemoteException - In the event of remote object failure.

getContentAsBytes

byte[] getContentAsBytes()
                         throws java.rmi.RemoteException
Get the content as a byte array.

Returns:
A byte array containing the content.
Throws:
java.rmi.RemoteException - In the event of remote object failure.

getContentAsString

java.lang.String getContentAsString()
                                    throws java.rmi.RemoteException
Get the content as a String.

Returns:
a String containing the content.
Throws:
java.rmi.RemoteException - In the event of remote object failure.

setContentType

void setContentType(java.lang.String contentType)
                    throws java.rmi.RemoteException
Set the content type for the object.

Parameters:
contentType - The new content type for the content.
Throws:
java.rmi.RemoteException - In the event of remote object failure.

setContent

void setContent(java.lang.String content)
                throws java.rmi.RemoteException
Set the content from a String

Parameters:
content - The new content for this object.
Throws:
java.rmi.RemoteException - In the event of remote object failure.

setContentFromStream

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

Parameters:
content - An InputStream that streams the content.
Throws:
java.rmi.RemoteException - In the event of remote object failure.

setContentFromBytes

void setContentFromBytes(byte[] content)
                         throws java.rmi.RemoteException
Set the content from a byte array

Parameters:
content - A ByteArray containing the content.
Throws:
java.rmi.RemoteException - In the event of remote object failure.

setProperty

void setProperty(java.lang.String propertyName,
                 java.lang.String propertyValue)
                 throws java.rmi.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
Throws:
java.rmi.RemoteException - In the event of remote object failure.

getProperty

java.lang.String getProperty(java.lang.String propertyName)
                             throws java.rmi.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
Throws:
java.rmi.RemoteException - In the event of remote object failure.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.