org.duraspace.fcrepo.cloudsync.service
Class CloudSyncServiceImpl
java.lang.Object
org.duraspace.fcrepo.cloudsync.service.CloudSyncServiceImpl
- All Implemented Interfaces:
- CloudSyncService
public class CloudSyncServiceImpl
- extends Object
- implements CloudSyncService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloudSyncServiceImpl
public CloudSyncServiceImpl(DataSource dataSource,
org.springframework.transaction.PlatformTransactionManager txMan,
HttpClientConfig httpClientConfig)
close
@PreDestroy
public void close()
getServiceInfo
public ServiceInfo getServiceInfo()
- Specified by:
getServiceInfo in interface CloudSyncService
initialize
public ServiceInfo initialize(ServiceInit serviceInit)
throws AlreadyInitializedException
- Specified by:
initialize in interface CloudSyncService
- Throws:
AlreadyInitializedException
createUser
public User createUser(User user)
throws UnauthorizedException,
NameConflictException
- Specified by:
createUser in interface CloudSyncService
- Throws:
UnauthorizedException
NameConflictException
listUsers
public List<User> listUsers()
- Specified by:
listUsers in interface CloudSyncService
getUser
public User getUser(String id)
throws ResourceNotFoundException
- Specified by:
getUser in interface CloudSyncService
- Throws:
ResourceNotFoundException
getCurrentUser
public User getCurrentUser()
- Specified by:
getCurrentUser in interface CloudSyncService
updateUser
public User updateUser(String id,
User user)
throws UnauthorizedException,
ResourceNotFoundException,
NameConflictException
- Specified by:
updateUser in interface CloudSyncService
- Throws:
UnauthorizedException
ResourceNotFoundException
NameConflictException
deleteUser
public void deleteUser(String id)
throws UnauthorizedException,
ResourceInUseException
- Specified by:
deleteUser in interface CloudSyncService
- Throws:
UnauthorizedException
ResourceInUseException
createTask
public Task createTask(Task task)
throws NameConflictException
- Specified by:
createTask in interface CloudSyncService
- Throws:
NameConflictException
listTasks
public List<Task> listTasks()
- Specified by:
listTasks in interface CloudSyncService
getTask
public Task getTask(String id)
throws ResourceNotFoundException
- Specified by:
getTask in interface CloudSyncService
- Throws:
ResourceNotFoundException
updateTask
public Task updateTask(String id,
Task task)
throws ResourceNotFoundException,
NameConflictException
- Specified by:
updateTask in interface CloudSyncService
- Throws:
ResourceNotFoundException
NameConflictException
deleteTask
public void deleteTask(String id)
throws ResourceInUseException
- Specified by:
deleteTask in interface CloudSyncService
- Throws:
ResourceInUseException
createObjectSet
public ObjectSet createObjectSet(ObjectSet objectSet)
throws NameConflictException
- Specified by:
createObjectSet in interface CloudSyncService
- Throws:
NameConflictException
listObjectSets
public List<ObjectSet> listObjectSets()
- Specified by:
listObjectSets in interface CloudSyncService
getObjectSet
public ObjectSet getObjectSet(String id)
throws ResourceNotFoundException
- Specified by:
getObjectSet in interface CloudSyncService
- Throws:
ResourceNotFoundException
updateObjectSet
public ObjectSet updateObjectSet(String id,
ObjectSet objectSet)
throws ResourceNotFoundException,
NameConflictException
- Specified by:
updateObjectSet in interface CloudSyncService
- Throws:
ResourceNotFoundException
NameConflictException
deleteObjectSet
public void deleteObjectSet(String id)
throws ResourceInUseException
- Specified by:
deleteObjectSet in interface CloudSyncService
- Throws:
ResourceInUseException
createObjectStore
public ObjectStore createObjectStore(ObjectStore objectStore)
throws NameConflictException
- Specified by:
createObjectStore in interface CloudSyncService
- Throws:
NameConflictException
listObjectStores
public List<ObjectStore> listObjectStores()
- Specified by:
listObjectStores in interface CloudSyncService
getObjectStore
public ObjectStore getObjectStore(String id)
throws ResourceNotFoundException
- Specified by:
getObjectStore in interface CloudSyncService
- Throws:
ResourceNotFoundException
deleteObjectStore
public void deleteObjectStore(String id)
throws ResourceInUseException
- Specified by:
deleteObjectStore in interface CloudSyncService
- Throws:
ResourceInUseException
listTaskLogs
public List<TaskLog> listTaskLogs()
- Specified by:
listTaskLogs in interface CloudSyncService
getTaskLog
public TaskLog getTaskLog(String id)
throws ResourceNotFoundException
- Specified by:
getTaskLog in interface CloudSyncService
- Throws:
ResourceNotFoundException
getTaskLogContent
public InputStream getTaskLogContent(String id)
throws ResourceNotFoundException
- Specified by:
getTaskLogContent in interface CloudSyncService
- Throws:
ResourceNotFoundException
deleteTaskLog
public void deleteTaskLog(String id)
- Specified by:
deleteTaskLog in interface CloudSyncService
listProviderAccounts
public List<ProviderAccount> listProviderAccounts(String url,
String username,
String password)
- Specified by:
listProviderAccounts in interface CloudSyncService
listSpaces
public List<Space> listSpaces(String url,
String username,
String password,
String providerAccountId)
- Specified by:
listSpaces in interface CloudSyncService
Copyright © 2012 DuraSpace. All Rights Reserved.