public interface IAttachment
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
As of NetWeaver 7.1, replaced by
getContent(com.sap.security.api.IUser) |
InputStream |
getContent(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
|
String getName() throws GroupwareException
GroupwareException
- When error occursvoid setName(String name) throws GroupwareException
name
- Name of the attachmentGroupwareException
- When error occursString getId() throws GroupwareException
GroupwareException
- When error occursvoid setId(String id) throws GroupwareException
id
- Attachment Id.GroupwareException
- When error occursvoid setParentId(String id) throws GroupwareException
id
- id of the groupware item.GroupwareException
- When error occursInputStream getContent(com.sapportals.portal.security.usermanagement.IUser user) throws GroupwareException
getContent(com.sap.security.api.IUser)
user
- User ObjectGroupwareException
- When error occursInputStream getContent(IUser user) throws GroupwareException
user
- User ObjectGroupwareException
- When error occursInputStream getContent() throws GroupwareException
GroupwareException
- When error occursvoid setContent(InputStream stream) throws GroupwareException
stream
- Inputstream containing the attachment content.GroupwareException
- When error occursvoid close() throws GroupwareException
GroupwareException
- When error occurslong getContentLength() throws GroupwareException
GroupwareException
- When error occursvoid setContentLength(long length) throws GroupwareException
length
- in bytes length of the content in the attachmentGroupwareException
- When error occursString getContentType() throws GroupwareException
GroupwareException
- When error occursvoid setContentType(String contentType) throws GroupwareException
contentType
- Attachment Content type.GroupwareException
- When error occursvoid setReadTransport(IReadTransport transport) throws GroupwareException
transport
- read transportGroupwareException
- When error occursvoid setGroupwareItem(IGroupwareItem item) throws GroupwareException
item
- Groupware Item.GroupwareException
- When error occursAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-COLL
|
[sap.com] tc/kmc/coll/gw
|
api
|
EP-KM-COL
|
Copyright 2018 SAP AG Complete Copyright Notice