WCM SandboxService - minor/consistency updates

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12641 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2009-01-08 18:12:36 +00:00
parent f2d23ec0c1
commit 2c3c766028
4 changed files with 66 additions and 50 deletions

View File

@@ -28,7 +28,6 @@ import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.alfresco.service.cmr.avm.VersionDescriptor;
import org.alfresco.service.namespace.QName; import org.alfresco.service.namespace.QName;
import org.alfresco.wcm.asset.AssetInfo; import org.alfresco.wcm.asset.AssetInfo;
@@ -154,7 +153,7 @@ public interface SandboxService
* *
* @param sbStoreId sandbox store id * @param sbStoreId sandbox store id
* @param includeDeleted if true, include deleted assets as well as new/modified assets * @param includeDeleted if true, include deleted assets as well as new/modified assets
* @return List<AVMNodeDescriptor> list of all changed assets * @return List<AssetInfo> list of all changed assets
*/ */
public List<AssetInfo> listChangedAll(String sbStoreId, boolean includeDeleted); public List<AssetInfo> listChangedAll(String sbStoreId, boolean includeDeleted);
@@ -166,7 +165,7 @@ public interface SandboxService
* @param sbStoreId sandbox store id * @param sbStoreId sandbox store id
* @param webApp web app to filter by * @param webApp web app to filter by
* @param includeDeleted if true, include deleted assets as well as new/modified assets * @param includeDeleted if true, include deleted assets as well as new/modified assets
* @return List<AVMNodeDescriptor> list of changed assets * @return List<AssetInfo> list of changed assets
*/ */
public List<AssetInfo> listChangedWebApp(String sbStoreId, String webApp, boolean includeDeleted); public List<AssetInfo> listChangedWebApp(String sbStoreId, String webApp, boolean includeDeleted);
@@ -178,7 +177,7 @@ public interface SandboxService
* @param sbStoreId sandbox store id * @param sbStoreId sandbox store id
* @param relativePath relative path to filter by (eg. /www/avm_webapps/ROOT/MyFolderToList) * @param relativePath relative path to filter by (eg. /www/avm_webapps/ROOT/MyFolderToList)
* @param includeDeleted if true, include deleted assets as well as new/modified assets * @param includeDeleted if true, include deleted assets as well as new/modified assets
* @return List<AVMNodeDescriptor> list of changed assets * @return List<AssetInfo> list of changed assets
*/ */
public List<AssetInfo> listChanged(String sbStoreId, String relativePath, boolean includeDeleted); public List<AssetInfo> listChanged(String sbStoreId, String relativePath, boolean includeDeleted);
@@ -190,7 +189,7 @@ public interface SandboxService
* @param dstSandboxStoreId destination sandbox store id * @param dstSandboxStoreId destination sandbox store id
* @param dstRelativePath destination relative path to filter by (eg. /www/avm_webapps/ROOT/MyFolderToList) * @param dstRelativePath destination relative path to filter by (eg. /www/avm_webapps/ROOT/MyFolderToList)
* @param includeDeleted if true, include deleted assets as well as new/modified assets * @param includeDeleted if true, include deleted assets as well as new/modified assets
* @return List<AVMNodeDescriptor> list of changed assets * @return List<AssetInfo> list of changed assets
*/ */
public List<AssetInfo> listChanged(String srcSandboxStoreId, String srcRelativePath, String dstSandboxStoreId, String dstRelativePath, boolean includeDeleted); public List<AssetInfo> listChanged(String srcSandboxStoreId, String srcRelativePath, String dstSandboxStoreId, String dstRelativePath, boolean includeDeleted);
@@ -199,67 +198,81 @@ public interface SandboxService
* <p> * <p>
* Note: This will submit all new/modified/deleted assets from the sandbox root directory (eg. /www/avm_webapps) - ie. across all web apps * Note: This will submit all new/modified/deleted assets from the sandbox root directory (eg. /www/avm_webapps) - ie. across all web apps
* <p> * <p>
* @param sbStoreId sandbox store id * @param sbStoreId sandbox store id
* @param submitLabel label for submitted snapshot * @param submitLabel label for submitted snapshot
* @param submitComment comment for submitted snapshot * @param submitDescription description for submitted snapshot
*/ */
public void submitAll(String sbStoreId, String submitLabel, String submitComment); public void submitAll(String sbStoreId, String submitLabel, String submitDescription);
/** /**
* Submit changed assets for given sandbox and web app (eg. in user sandbox) * Submit changed assets for given sandbox and web app (eg. in user sandbox)
* <p> * <p>
* Note: This will submit new/modified/deleted assets for the given web app * Note: This will submit new/modified/deleted assets for the given web app
* *
* @param sbStoreId sandbox store id * @param sbStoreId sandbox store id
* @param webApp web app to filter by * @param webApp web app to filter by
* @param submitLabel label for submitted snapshot * @param submitLabel label for submitted snapshot
* @param submitComment comment for submitted snapshot * @param submitDescription description for submitted snapshot
*/ */
public void submitWebApp(String sbStoreId, String webApp, String submitLabel, String submitComment); public void submitWebApp(String sbStoreId, String webApp, String submitLabel, String submitDescription);
/** /**
* Submit changed asset(s) for given sandbox path (eg. in user sandbox) * Submit changed asset(s) for given sandbox path (eg. in user sandbox)
* <p> * <p>
* Note: This will submit new/modified/deleted asset(s) for given path (either file or directory and below) * Note: This will submit new/modified/deleted asset(s) for given path (either file or directory and below)
* *
* @param sbStoreId sandbox store id * @param sbStoreId sandbox store id
* @param relativePath relative path to filter by (eg. /www/avm_webapps or /www/avm_webapps/ROOT/MyFolderToSubmit) * @param relativePath relative path to filter by (eg. /www/avm_webapps or /www/avm_webapps/ROOT/MyFolderToSubmit)
* @param submitLabel label for submitted snapshot * @param submitLabel label for submitted snapshot
* @param submitComment comment for submitted snapshot * @param submitDescription description for submitted snapshot
*/ */
public void submit(String sbStoreId, String relativePath, String submitLabel, String submitComment); public void submit(String sbStoreId, String relativePath, String submitLabel, String submitDescription);
/** /**
* Submit list of changed assets for given sandbox (eg. in user sandbox) * Submit list of changed assets for given sandbox (eg. in user sandbox)
* *
* @param sbStoreId sandbox store id * @param sbStoreId sandbox store id
* @param assetPaths list of assets, as relative paths (eg. /www/avm_webapps/ROOT/MyFolderToSubmit) * @param assetPaths list of assets, as relative paths (eg. /www/avm_webapps/ROOT/MyFolderToSubmit)
* @param submitLabel label for submitted snapshot * @param submitLabel label for submitted snapshot
* @param submitComment comment for submitted snapshot * @param submitDescription description for submitted snapshot
*/ */
public void submitList(String sbStoreId, List<String> relativePaths, String submitLabel, String submitComment); public void submitList(String sbStoreId, List<String> relativePaths, String submitLabel, String submitDescription);
public void submitList(String sbStoreId, List<String> relativePaths, Map<String, Date> expirationDates, String submitLabel, String submitComment);
/**
* Submit list of changed assets for given sandbox (eg. from user sandbox to staging sandbox)
*
* @param sbStoreId sandbox store id
* @param assetNodes list of assets, as AVM node descriptors
* @param submitLabel label for submitted snapshot
* @param submitComment comment for submitted snapshot
*/
public void submitListAssets(String sbStoreId, List<AssetInfo> assets, String submitLabel, String submitComment);
/** /**
* Submit list of changed assets for given sandbox (eg. from user sandbox to staging sandbox) * Submit list of changed assets for given sandbox (eg. from user sandbox to staging sandbox)
* *
* @param sbStoreId sandbox store id * NOTE: for backwards compatibility - subject to change - hence deprecated for now
* @param assets list of assets, as AVM node descriptors *
* @param expirationDates map of <path, date> for those assets set with an expiration date, or can be null (if no expiration dates) * @param sbStoreId sandbox store id
* @param submitLabel label for submitted snapshot * @param assetPaths list of assets, as relative paths (eg. /www/avm_webapps/ROOT/MyFolderToSubmit)
* @param submitComment comment for submitted snapshot * @param expirationDates map of AVM src paths to expiration dates
* @param submitLabel label for submitted snapshot
* @param submitDescription description for submitted snapshot
*
* @deprecated
*/ */
public void submitListAssets(String sbStoreId, List<AssetInfo> assets, Map<String, Date> expirationDates, String submitLabel, String submitComment); public void submitList(String sbStoreId, List<String> relativePaths, Map<String, Date> expirationDates, String submitLabel, String submitDescription);
/**
* Submit list of changed assets for given sandbox (eg. from user sandbox to staging sandbox)
*
* @param sbStoreId sandbox store id
* @param assetNodes list of assets
* @param submitLabel label for submitted snapshot
* @param submitDescription description for submitted snapshot
*/
public void submitListAssets(String sbStoreId, List<AssetInfo> assets, String submitLabel, String submitDescription);
/**
* Submit list of changed assets for given sandbox (eg. from user sandbox to staging sandbox)
*
* @param sbStoreId sandbox store id
* @param assets list of assets
* @param expirationDates map of <path, date> for those assets set with an expiration date, or can be null (if no expiration dates)
* @param submitLabel label for submitted snapshot
* @param submitDescription description for submitted snapshot
*/
public void submitListAssets(String sbStoreId, List<AssetInfo> assets, Map<String, Date> expirationDates, String submitLabel, String submitDescription);
/** /**
* Revert all changed assets for given sandbox (eg. in user sandbox) * Revert all changed assets for given sandbox (eg. in user sandbox)
@@ -294,14 +307,14 @@ public interface SandboxService
* Revert list of changed assets for given sandbox (eg. in user sandbox) * Revert list of changed assets for given sandbox (eg. in user sandbox)
* *
* @param sbStoreId sandbox store id * @param sbStoreId sandbox store id
* @param assetPaths list of assets, as relative paths (eg. /www/avm_webapps/ROOT/MyFolderToRevert) * @param assetPaths list of assets, as relative paths (eg. /www/avm_webapps/ROOT/MyFolderToRevert)
*/ */
public void revertList(String sbStoreId, List<String> relativePaths); public void revertList(String sbStoreId, List<String> relativePaths);
/** /**
* Revert list of changed assets for given sandbox (eg. in user sandbox) * Revert list of changed assets for given sandbox (eg. in user sandbox)
* *
* @param assets list of AVM node descriptors * @param assets list of assets
*/ */
public void revertListNodes(String sbStoreId, List<AssetInfo> assets); public void revertListNodes(String sbStoreId, List<AssetInfo> assets);

View File

@@ -491,6 +491,9 @@ public class SandboxServiceImpl implements SandboxService
submitList(sbStoreId, relativePaths, null, submitLabel, submitComment); submitList(sbStoreId, relativePaths, null, submitLabel, submitComment);
} }
/* (non-Javadoc)
* @see org.alfresco.wcm.sandbox.SandboxService#submitList(java.lang.String, java.util.List, java.util.Map, java.lang.String, java.lang.String)
*/
public void submitList(String sbStoreId, List<String> relativePaths, Map<String, Date> expirationDates, String submitLabel, String submitComment) public void submitList(String sbStoreId, List<String> relativePaths, Map<String, Date> expirationDates, String submitLabel, String submitComment)
{ {
ParameterCheck.mandatoryString("sbStoreId", sbStoreId); ParameterCheck.mandatoryString("sbStoreId", sbStoreId);

View File

@@ -60,16 +60,16 @@ public interface SandboxVersion
public Date getCreatedDate(); public Date getCreatedDate();
/** /**
* Get the short description * Get the submitted (short) label / tag
* *
* @return The short description * @return The label
*/ */
public String getTag(); public String getLabel();
/** /**
* Get the long description * Get the submitted (long) description
* *
* @return The long description * @return The description
*/ */
public String getDescription(); public String getDescription();

View File

@@ -73,9 +73,9 @@ public class SandboxVersionImpl implements SandboxVersion
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see org.alfresco.wcm.sandbox.SandboxVersion#getTag() * @see org.alfresco.wcm.sandbox.SandboxVersion#getLabel()
*/ */
public String getTag() public String getLabel()
{ {
return vDesc.getTag(); return vDesc.getTag();
} }