public class DuplicatorImpl extends Object implements Duplicator
| Constructor and Description |
|---|
DuplicatorImpl(SpaceDuplicator spaceDuplicator,
ContentDuplicator contentDuplicator) |
| Modifier and Type | Method and Description |
|---|---|
String |
createContent(String spaceId,
String contentId)
This method creates a newly duplicated content item in the arg spaceId
with the arg contentId.
|
void |
createSpace(String spaceId)
This method creates a newly duplicated space with the arg spaceId.
|
void |
deleteContent(String spaceId,
String contentId)
This method deletes an existing content item in the arg spaceId with the
arg contentId
|
void |
deleteSpace(String spaceId)
This method deletes the duplicated space with arg spaceId.
|
String |
getFromStoreId()
Gets the ID of the store from which spaces are to be retrieved
|
String |
getToStoreId()
Gets the ID of the store from which spaces are to be duplicated
|
void |
stop()
This method performs any necessary clean-up of the SpaceDuplicator.
|
void |
updateContent(String spaceId,
String contentId)
This method updates an existing content item in the arg spaceId with the
arg contentId
|
void |
updateSpaceAcl(String spaceId)
This method updates the duplicated space ACL with arg spaceId.
|
public DuplicatorImpl(SpaceDuplicator spaceDuplicator, ContentDuplicator contentDuplicator)
public String getFromStoreId()
SpaceDuplicatorgetFromStoreId in interface ContentDuplicatorgetFromStoreId in interface SpaceDuplicatorpublic String getToStoreId()
SpaceDuplicatorgetToStoreId in interface ContentDuplicatorgetToStoreId in interface SpaceDuplicatorpublic void createSpace(String spaceId)
SpaceDuplicatorcreateSpace in interface SpaceDuplicatorspaceId - of duplicated spacepublic void updateSpaceAcl(String spaceId)
SpaceDuplicatorupdateSpaceAcl in interface SpaceDuplicatorspaceId - of space to updatepublic void deleteSpace(String spaceId)
SpaceDuplicatordeleteSpace in interface SpaceDuplicatorspaceId - of space to deletepublic String createContent(String spaceId, String contentId)
ContentDuplicatorcreateContent in interface ContentDuplicatorspaceId - of content itemcontentId - of content itempublic void updateContent(String spaceId, String contentId)
ContentDuplicatorupdateContent in interface ContentDuplicatorspaceId - of content itemcontentId - of content itempublic void deleteContent(String spaceId, String contentId)
ContentDuplicatordeleteContent in interface ContentDuplicatorspaceId - of content itemcontentId - of content itempublic void stop()
SpaceDuplicatorstop in interface ContentDuplicatorstop in interface SpaceDuplicatorCopyright © 2009-2013 DuraSpace. All Rights Reserved.