org.duraspace.fcrepo.cloudsync.api
Interface CloudSyncService


public interface CloudSyncService


Method Summary
 ObjectSet createObjectSet(ObjectSet objectSet)
           
 ObjectStore createObjectStore(ObjectStore objectStore)
           
 Task createTask(Task task)
           
 User createUser(User user)
           
 void deleteObjectSet(String id)
           
 void deleteObjectStore(String id)
           
 void deleteTask(String id)
           
 void deleteTaskLog(String id)
           
 void deleteUser(String id)
           
 User getCurrentUser()
           
 ObjectSet getObjectSet(String id)
           
 ObjectStore getObjectStore(String id)
           
 ServiceInfo getServiceInfo()
           
 Task getTask(String id)
           
 TaskLog getTaskLog(String id)
           
 InputStream getTaskLogContent(String id)
           
 User getUser(String id)
           
 ServiceInfo initialize(ServiceInit serviceInit)
           
 List<ObjectSet> listObjectSets()
           
 List<ObjectStore> listObjectStores()
           
 List<ProviderAccount> listProviderAccounts(String url, String username, String password)
           
 List<Space> listSpaces(String url, String username, String password, String providerAccountId)
           
 List<TaskLog> listTaskLogs()
           
 List<Task> listTasks()
           
 List<User> listUsers()
           
 ObjectSet updateObjectSet(String id, ObjectSet objectSet)
           
 Task updateTask(String id, Task task)
           
 User updateUser(String id, User user)
           
 

Method Detail

getServiceInfo

ServiceInfo getServiceInfo()

initialize

ServiceInfo initialize(ServiceInit serviceInit)
                       throws AlreadyInitializedException
Throws:
AlreadyInitializedException

createUser

User createUser(User user)
                throws UnauthorizedException,
                       NameConflictException
Throws:
UnauthorizedException
NameConflictException

listUsers

List<User> listUsers()

getUser

User getUser(String id)
             throws ResourceNotFoundException
Throws:
ResourceNotFoundException

getCurrentUser

User getCurrentUser()

updateUser

User updateUser(String id,
                User user)
                throws UnauthorizedException,
                       ResourceNotFoundException,
                       NameConflictException
Throws:
UnauthorizedException
ResourceNotFoundException
NameConflictException

deleteUser

void deleteUser(String id)
                throws UnauthorizedException,
                       ResourceInUseException
Throws:
UnauthorizedException
ResourceInUseException

createTask

Task createTask(Task task)
                throws NameConflictException
Throws:
NameConflictException

listTasks

List<Task> listTasks()

getTask

Task getTask(String id)
             throws ResourceNotFoundException
Throws:
ResourceNotFoundException

updateTask

Task updateTask(String id,
                Task task)
                throws ResourceNotFoundException,
                       NameConflictException
Throws:
ResourceNotFoundException
NameConflictException

deleteTask

void deleteTask(String id)
                throws ResourceInUseException
Throws:
ResourceInUseException

createObjectSet

ObjectSet createObjectSet(ObjectSet objectSet)
                          throws NameConflictException
Throws:
NameConflictException

listObjectSets

List<ObjectSet> listObjectSets()

getObjectSet

ObjectSet getObjectSet(String id)
                       throws ResourceNotFoundException
Throws:
ResourceNotFoundException

updateObjectSet

ObjectSet updateObjectSet(String id,
                          ObjectSet objectSet)
                          throws ResourceNotFoundException,
                                 NameConflictException
Throws:
ResourceNotFoundException
NameConflictException

deleteObjectSet

void deleteObjectSet(String id)
                     throws ResourceInUseException
Throws:
ResourceInUseException

createObjectStore

ObjectStore createObjectStore(ObjectStore objectStore)
                              throws NameConflictException
Throws:
NameConflictException

listObjectStores

List<ObjectStore> listObjectStores()

getObjectStore

ObjectStore getObjectStore(String id)
                           throws ResourceNotFoundException
Throws:
ResourceNotFoundException

deleteObjectStore

void deleteObjectStore(String id)
                       throws ResourceInUseException
Throws:
ResourceInUseException

listTaskLogs

List<TaskLog> listTaskLogs()

getTaskLog

TaskLog getTaskLog(String id)
                   throws ResourceNotFoundException
Throws:
ResourceNotFoundException

getTaskLogContent

InputStream getTaskLogContent(String id)
                              throws ResourceNotFoundException
Throws:
ResourceNotFoundException

deleteTaskLog

void deleteTaskLog(String id)
                   throws ResourceInUseException
Throws:
ResourceInUseException

listProviderAccounts

List<ProviderAccount> listProviderAccounts(String url,
                                           String username,
                                           String password)

listSpaces

List<Space> listSpaces(String url,
                       String username,
                       String password,
                       String providerAccountId)


Copyright © 2012 DuraSpace. All Rights Reserved.