mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12874 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
28 lines
962 B
C#
28 lines
962 B
C#
namespace WcfCmisWSTests {
|
|
///
|
|
/// author: Dmitry Velichkevich
|
|
///
|
|
public class FolderCreatorStrategy: CmisManipulationsStrategy<string> {
|
|
private string objectName;
|
|
private string objectParent;
|
|
|
|
string CmisManipulationsStrategy<string>.getName() {
|
|
|
|
return objectName;
|
|
}
|
|
|
|
public FolderCreatorStrategy(string objectName, string objectParent) {
|
|
|
|
this.objectName = objectName;
|
|
this.objectParent = objectParent;
|
|
}
|
|
|
|
string CmisManipulationsStrategy<string>.performManipulations() {
|
|
|
|
return AbstractCmisServicesHelper.createObjectServiceClient().createFolder(
|
|
AbstractCmisServicesHelper.getAndAssertRepositoryId(), AbstractCmisServicesHelper.FOLDER_TYPE,
|
|
AbstractCmisServicesHelper.createCmisObjectProperties(objectName), objectParent);
|
|
}
|
|
}
|
|
}
|