se.kmr.scam
Interface ContentI

All Known Subinterfaces:
Content
All Known Implementing Classes:
ContentBean

public interface ContentI

Title:

Description:

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
jand

Method Summary
 void copy(String id, String uri, String toId, String toUri)
          Copy file-content of a content-Resource to another Resource.
 InputStream get(String id, String uri)
          Get file-content of a content-Resource.
 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.
 

Method Detail

get

public InputStream get(String id,
                       String uri)
                throws ArchiveException,
                       RemoteException
Get file-content of a content-Resource.

Parameters:
id - Manifest
uri - content-Resource URI
Returns:
file-content
Throws:
ArchiveException
RemoteException

set

public long set(String id,
                String uri,
                InputStream is)
         throws ArchiveException,
                RemoteException
Set file-content of a content-Resource.

Parameters:
id - Manifest
uri - content-Resource URI
is - file-content
Returns:
number of bytes written
Throws:
ArchiveException
RemoteException

remove

public void remove(String id,
                   String uri)
            throws ArchiveException,
                   RemoteException
Remove file-content of a content-Resource.

Parameters:
id - identifies the manifest
uri - identifies the content reosurce.
Throws:
ArchiveException - thrown in case of exception removing the content
RemoteException

move

public void move(String id,
                 String uri,
                 String toId,
                 String toUri)
          throws ArchiveException,
                 RemoteException
Move file-content of a content-Resource to another Resource.

Parameters:
id - identifies the source Manifest
uri - the source content resource
toId - identifies the destination Manifest to move to (can be the same as id)
toUri - the destination content resource
Throws:
ArchiveException - thrown in case of exception while moving content
RemoteException

copy

public void copy(String id,
                 String uri,
                 String toId,
                 String toUri)
          throws ArchiveException,
                 RemoteException
Copy file-content of a content-Resource to another Resource.

Parameters:
id - the source manifest
uri - the source content resource
toId - the destination manifest
toUri - the destination content resource
Throws:
ArchiveException - thrown in case of exception while coping content
RemoteException

lookup

public URI lookup(String webdavUri)
           throws ArchiveException,
                  RemoteException
Lookup a WebDAV-URI on the format ///...

Parameters:
webdavUri - Hierarcical URI
Returns:
"scam"-URI (IMSCP.Item URI)
Throws:
ArchiveException - thrown in case of exception while extracting SCAM uri.
RemoteException


Copyright © 2003 SCAM. All Rights Reserved.