|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectse.kmr.scam.server.impl.BeanCommon
se.kmr.scam.server.impl.ContentBean
| Field Summary |
| Fields inherited from class se.kmr.scam.server.impl.BeanCommon |
ADMIN_ROLE, GUEST_ROLE |
| Constructor Summary | |
ContentBean()
|
|
| Method Summary | |
void |
copy(String id,
String uri,
String toId,
String toUri)
Copy file-content of a content-Resource to another Resource. |
static int |
copyStream(InputStream is,
OutputStream os)
|
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
InputStream |
get(String id,
String uri)
Get file-content of a content-Resource. |
protected static File |
getMainFolder(String id)
|
protected SessionContext |
getSessionContext()
Get the sessioncontext |
URI |
lookup(String webdavUri)
Lookup a WebDAV-URI on the format / |
void |
move(String id,
String uri,
String toId,
String toUri)
Move file-content of a content-Resource to another Resource. |
void |
remove(String id,
String uri)
Remove file-content of a content-Resource. |
long |
set(String id,
String uri,
InputStream is)
Set file-content of a content-Resource. |
void |
setSessionContext(SessionContext sessionContext)
|
| Methods inherited from class se.kmr.scam.server.impl.BeanCommon |
abort, assertPermission, assertPermission, begin, close, commit, contains, create, filter, filter, getCaller, hasPermission, hasPermission, isCaller, isCallerInRole, list, lookup, open, open, remove, rollback |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContentBean()
| Method Detail |
protected SessionContext getSessionContext()
BeanCommon
getSessionContext in class BeanCommon
public void ejbCreate()
throws CreateException
CreateExceptionpublic void ejbRemove()
ejbRemove in interface SessionBeanpublic void ejbActivate()
ejbActivate in interface SessionBeanpublic void ejbPassivate()
ejbPassivate in interface SessionBeanpublic void setSessionContext(SessionContext sessionContext)
setSessionContext in interface SessionBean
public InputStream get(String id,
String uri)
throws ArchiveException
get in interface ContentIid - Manifesturi - content-Resource URI
ArchiveException
public long set(String id,
String uri,
InputStream is)
throws ArchiveException
set in interface ContentIid - Manifesturi - content-Resource URIis - file-content
ArchiveException
public void remove(String id,
String uri)
throws ArchiveException
remove in interface ContentIid - identifies the manifesturi - identifies the content reosurce.
ArchiveException - thrown in case of exception removing the content
public void move(String id,
String uri,
String toId,
String toUri)
throws ArchiveException
move in interface ContentIid - identifies the source Manifesturi - the source content resourcetoId - identifies the destination Manifest to move to (can be the same as id)toUri - the destination content resource
ArchiveException - thrown in case of exception while moving content
public void copy(String id,
String uri,
String toId,
String toUri)
throws ArchiveException
copy in interface ContentIid - the source manifesturi - the source content resourcetoId - the destination manifesttoUri - the destination content resource
ArchiveException - thrown in case of exception while coping content
public URI lookup(String webdavUri)
throws ArchiveException
lookup in interface ContentIwebdavUri - Hierarcical URI
ArchiveException - thrown in case of exception while extracting SCAM uri.
public static int copyStream(InputStream is,
OutputStream os)
throws IOException
IOExceptionprotected static File getMainFolder(String id)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||