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()
SpaceDuplicator
getFromStoreId
in interface ContentDuplicator
getFromStoreId
in interface SpaceDuplicator
public String getToStoreId()
SpaceDuplicator
getToStoreId
in interface ContentDuplicator
getToStoreId
in interface SpaceDuplicator
public void createSpace(String spaceId)
SpaceDuplicator
createSpace
in interface SpaceDuplicator
spaceId
- of duplicated spacepublic void updateSpaceAcl(String spaceId)
SpaceDuplicator
updateSpaceAcl
in interface SpaceDuplicator
spaceId
- of space to updatepublic void deleteSpace(String spaceId)
SpaceDuplicator
deleteSpace
in interface SpaceDuplicator
spaceId
- of space to deletepublic String createContent(String spaceId, String contentId)
ContentDuplicator
createContent
in interface ContentDuplicator
spaceId
- of content itemcontentId
- of content itempublic void updateContent(String spaceId, String contentId)
ContentDuplicator
updateContent
in interface ContentDuplicator
spaceId
- of content itemcontentId
- of content itempublic void deleteContent(String spaceId, String contentId)
ContentDuplicator
deleteContent
in interface ContentDuplicator
spaceId
- of content itemcontentId
- of content itempublic void stop()
SpaceDuplicator
stop
in interface ContentDuplicator
stop
in interface SpaceDuplicator
Copyright © 2009-2013 DuraSpace. All Rights Reserved.