org.opencrx.kernel.document1.cci
Interface Media

All Superinterfaces:
BasicObject, ContextCapable, ExtentCapable, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, ViewCapable
All Known Subinterfaces:
Media, MediaContent
All Known Implementing Classes:
MediaContentImpl, MediaImpl, MediaImpl

public interface Media
extends BasicObject


Method Summary
 InputStream getContent()
          Deprecated.  
 long getContent(OutputStream stream, long position)
           
 Long getContentLength()
           
 String getContentMimeType()
           
 String getContentName()
           
 String getDescription()
           
 void setContent(InputStream newValue)
           
 void setContent(InputStream newValue, long length)
           
 void setContentMimeType(String newValue)
          Sets a new value for the attribute contentMimeType.
 void setContentName(String newValue)
          Sets a new value for the attribute contentName.
 void setDescription(String newValue)
          Sets a new value for the attribute description.
 
Methods inherited from interface org.openmdx.base.cci.BasicObject
getCreatedAt, getCreatedBy, getModifiedAt, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci.ContextCapable
getContext, getContext
 
Methods inherited from interface org.openmdx.base.cci.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.cci.ViewCapable
getView, getView, getView, getView
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0
refAddEventListener, refAddToUnitOfWork, refAddValue, refContext, refDefaultFetchGroup, refDelegate, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refInitialize, refInitialize, refIsDeleted, refIsDirty, refIsNew, refIsPersistent, refIsWriteProtected, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refSetValue, refWriteProtect
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getContent

InputStream getContent()
Deprecated. 

Returns:
A java.io.InputStream containing the binary value as stream for this attribute.
Throws:
JmiException - If the values cannot be retrieved for some reason.

getContent

long getContent(OutputStream stream,
                long position)
Parameters:
stream - A java.io.OutputStream containing the binary value as output stream.
position - start streaming at given position.
Returns:
length of the stream.
Throws:
JmiException - If the values cannot be retrieved for some reason.

setContent

void setContent(InputStream newValue)
Parameters:
newValue - A java.io.InputStream containing the binary value for this attribute.
Throws:
JmiException - If the value cannot be set for some reason.

setContent

void setContent(InputStream newValue,
                long length)
Parameters:
newValue - A java.io.InputStream containing the binary value for this attribute.
length - length of the stream in bytes.
Throws:
JmiException - If the value cannot be set for some reason.

getContentLength

Long getContentLength()
Returns:
The possibly null value for attribute contentLength.
Throws:
JmiException - If the value cannot be retrieved for some reason.

getContentMimeType

String getContentMimeType()
Returns:
The possibly null value for attribute contentMimeType.
Throws:
JmiException - If the value cannot be retrieved for some reason.

setContentMimeType

void setContentMimeType(String newValue)
Sets a new value for the attribute contentMimeType.

Parameters:
newValue - The possibly null new value for attribute contentMimeType.
Throws:
JmiException - If the value cannot be set for some reason.

getContentName

String getContentName()
Returns:
The possibly null value for attribute contentName.
Throws:
JmiException - If the value cannot be retrieved for some reason.

setContentName

void setContentName(String newValue)
Sets a new value for the attribute contentName.

Parameters:
newValue - The possibly null new value for attribute contentName.
Throws:
JmiException - If the value cannot be set for some reason.

getDescription

String getDescription()
Returns:
The possibly null value for attribute description.
Throws:
JmiException - If the value cannot be retrieved for some reason.

setDescription

void setDescription(String newValue)
Sets a new value for the attribute description.

Parameters:
newValue - The possibly null new value for attribute description.
Throws:
JmiException - If the value cannot be set for some reason.


This software is published under the BSD license. Copyright © 2003-2007, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.