|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.libraries.repository.email.EmailContentItem
public class EmailContentItem
Creation-Date: 17.09.2008, 15:00:00
| Constructor Summary | |
|---|---|
EmailContentItem(java.lang.String name,
EmailRepository repository,
EmailContentLocation parent)
|
|
| Method Summary | |
|---|---|
boolean |
delete()
Attempts to delete the entity. |
java.lang.Object |
getAttribute(java.lang.String domain,
java.lang.String key)
Returns a attribute value for the given domain (namespace) and attribute-name. |
java.lang.Object |
getContentId()
Returns a unique identifier. |
java.io.InputStream |
getInputStream()
Tries to open and return a input stream for reading from the content item. |
java.lang.String |
getMimeType()
Returns the mime type for the content entity. |
java.lang.String |
getName()
Returns the name of the entry. |
java.io.OutputStream |
getOutputStream()
Tries to open and return a output stream for writing into the content item. |
ContentLocation |
getParent()
Returns a reference to the parent location. |
Repository |
getRepository()
Returns the current repository, to which tis entity belongs. |
boolean |
isReadable()
Checks, whether the content item is readable. |
boolean |
isWriteable()
Checks, whether the content item is writable. |
boolean |
setAttribute(java.lang.String domain,
java.lang.String key,
java.lang.Object value)
Updates the attribute value for the given attribute domain and name. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmailContentItem(java.lang.String name,
EmailRepository repository,
EmailContentLocation parent)
| Method Detail |
|---|
public java.lang.String getMimeType()
throws ContentIOException
ContentItem
getMimeType in interface ContentItemContentIOException - if an error occured.
public java.io.OutputStream getOutputStream()
throws ContentIOException,
java.io.IOException
ContentItem
getOutputStream in interface ContentItemContentIOException - if an repository related error prevents the creation of the output stream.
java.io.IOException - if an IO error occurs.
public java.io.InputStream getInputStream()
throws ContentIOException,
java.io.IOException
ContentItem
getInputStream in interface ContentItemContentIOException - if an repository related error prevents the creation of the input stream.
java.io.IOException - if an IO error occurs.public boolean isReadable()
ContentItem
isReadable in interface ContentItempublic boolean isWriteable()
ContentItem
isWriteable in interface ContentItempublic java.lang.String getName()
ContentEntity
getName in interface ContentEntitypublic java.lang.Object getContentId()
ContentEntity
getContentId in interface ContentEntity
public java.lang.Object getAttribute(java.lang.String domain,
java.lang.String key)
ContentEntityLibRepositoryBoot class.
getAttribute in interface ContentEntitydomain - the attribute domain.key - the name of the attribute.
public boolean setAttribute(java.lang.String domain,
java.lang.String key,
java.lang.Object value)
ContentEntity
setAttribute in interface ContentEntitydomain - the attribute domain.key - the attribute namevalue - the new attribute value.
public Repository getRepository()
ContentEntity
getRepository in interface ContentEntitypublic ContentLocation getParent()
ContentEntity
getParent in interface ContentEntitypublic boolean delete()
ContentEntity
delete in interface ContentEntity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||