org.duraspace.fcrepo.cloudsync.api
Interface CloudSyncService
public interface CloudSyncService
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.