org.duracloud.durastore.rest
Interface ContentResource

All Known Implementing Classes:
ContentResourceImpl

public interface ContentResource

Author:
Andrew Woods Date: Aug 19, 2010

Method Summary
 String addContent(String spaceID, String contentID, InputStream content, String contentMimeType, Map<String,String> userProperties, int contentSize, String checksum, String storeID)
           
 String copyContent(String srcStoreID, String srcSpaceID, String srcContentID, String destStoreID, String destSpaceID, String destContentID)
           
 void deleteContent(String spaceID, String contentID, String storeID)
           
 InputStream getContent(String spaceID, String contentID, String storeID)
           
 Map<String,String> getContentProperties(String spaceID, String contentID, String storeID)
           
 void updateContentProperties(String spaceID, String contentID, String contentMimeType, Map<String,String> userProperties, String storeID)
           
 

Method Detail

getContent

InputStream getContent(String spaceID,
                       String contentID,
                       String storeID)
                       throws ResourceException
Throws:
ResourceException

getContentProperties

Map<String,String> getContentProperties(String spaceID,
                                        String contentID,
                                        String storeID)
                                        throws ResourceException
Throws:
ResourceException

updateContentProperties

void updateContentProperties(String spaceID,
                             String contentID,
                             String contentMimeType,
                             Map<String,String> userProperties,
                             String storeID)
                             throws ResourceException
Throws:
ResourceException

addContent

String addContent(String spaceID,
                  String contentID,
                  InputStream content,
                  String contentMimeType,
                  Map<String,String> userProperties,
                  int contentSize,
                  String checksum,
                  String storeID)
                  throws ResourceException,
                         InvalidIdException
Throws:
ResourceException
InvalidIdException

copyContent

String copyContent(String srcStoreID,
                   String srcSpaceID,
                   String srcContentID,
                   String destStoreID,
                   String destSpaceID,
                   String destContentID)
                   throws ResourceException
Throws:
ResourceException

deleteContent

void deleteContent(String spaceID,
                   String contentID,
                   String storeID)
                   throws ResourceException
Throws:
ResourceException


Copyright © 2009-2012 DuraSpace. All Rights Reserved.