|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represents attachments of different groupware items.
| Method Summary | |
void |
close()
Closes the input stream associated with attachment content (It is the responsibility of the client to close the input stream.) |
InputStream |
getContent()
Returns an input stream to the attachment content |
InputStream |
getContent(com.sapportals.portal.security.usermanagement.IUser user)
Returns an input stream to the attachment content |
long |
getContentLength()
Returns the length of the resource content |
String |
getContentType()
Returns the content type of the attachment |
String |
getId()
Returns the id of the attachment |
String |
getName()
Returns the name of the attachment |
void |
setContent(InputStream stream)
Sets the input stream to the attachment content |
void |
setContentLength(long length)
Sets the length of the resource content |
void |
setContentType(String contentType)
Sets the content type for the attachment content |
void |
setGroupwareItem(IGroupwareItem item)
Sets the parent groupware items of the attachment |
void |
setId(String id)
Sets the id of the attachment |
void |
setName(String name)
Sets the name of the attachment |
void |
setParentId(String id)
Sets the id of the parent groupware item for the attachment |
void |
setReadTransport(IReadTransport transport)
Sets the read transport for fetching the content of the attachment |
| Method Detail |
public String getName()
throws GroupwareException
GroupwareException - When error occurs
public void setName(String name)
throws GroupwareException
name - Name of the attachment
GroupwareException - When error occurs
public String getId()
throws GroupwareException
GroupwareException - When error occurs
public void setId(String id)
throws GroupwareException
id - Attachment Id.
GroupwareException - When error occurs
public void setParentId(String id)
throws GroupwareException
id - id of the groupware item.
GroupwareException - When error occurs
public InputStream getContent(com.sapportals.portal.security.usermanagement.IUser user)
throws GroupwareException
GroupwareException - When error occurs
public InputStream getContent()
throws GroupwareException
GroupwareException - When error occurs
public void setContent(InputStream stream)
throws GroupwareException
stream - Inputstream containing the attachment content.
GroupwareException - When error occurs
public void close()
throws GroupwareException
GroupwareException - When error occurs
public long getContentLength()
throws GroupwareException
GroupwareException - When error occurs
public void setContentLength(long length)
throws GroupwareException
length - in bytes length of the content in the attachment
GroupwareException - When error occurs
public String getContentType()
throws GroupwareException
GroupwareException - When error occurs
public void setContentType(String contentType)
throws GroupwareException
GroupwareException - When error occurs
public void setReadTransport(IReadTransport transport)
throws GroupwareException
GroupwareException - When error occurs
public void setGroupwareItem(IGroupwareItem item)
throws GroupwareException
GroupwareException - When error occurs
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||