mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-3963: review updates
This commit is contained in:
@@ -75,7 +75,7 @@ public class FileplanComponentsEntityResource implements
|
|||||||
String permanentParameter = parameters.getParameter(PARAM_PERMANENT);
|
String permanentParameter = parameters.getParameter(PARAM_PERMANENT);
|
||||||
if(permanentParameter != null)
|
if(permanentParameter != null)
|
||||||
{
|
{
|
||||||
throw new InvalidArgumentException("Delete does not support parameter: permanent");
|
throw new InvalidArgumentException("DELETE does not support parameter: permanent");
|
||||||
}
|
}
|
||||||
nodes.deleteNode(nodeId, parameters);
|
nodes.deleteNode(nodeId, parameters);
|
||||||
}
|
}
|
||||||
|
@@ -78,7 +78,7 @@ public class RMSiteEntityResource implements EntityResourceAction.Delete, Entity
|
|||||||
String permanentParameter = parameters.getParameter(PARAM_PERMANENT);
|
String permanentParameter = parameters.getParameter(PARAM_PERMANENT);
|
||||||
if(permanentParameter != null)
|
if(permanentParameter != null)
|
||||||
{
|
{
|
||||||
throw new InvalidArgumentException("Delete does not support parameter: permanent");
|
throw new InvalidArgumentException("DELETE does not support parameter: permanent");
|
||||||
}
|
}
|
||||||
sites.deleteSite(siteId, parameters);
|
sites.deleteSite(siteId, parameters);
|
||||||
}
|
}
|
||||||
@@ -130,7 +130,7 @@ public class RMSiteEntityResource implements EntityResourceAction.Delete, Entity
|
|||||||
{
|
{
|
||||||
if (!RM_SITE_ID.equals(siteId))
|
if (!RM_SITE_ID.equals(siteId))
|
||||||
{
|
{
|
||||||
throw new InvalidParameterException("The Get is supported only for siteId = rm.");
|
throw new InvalidParameterException("GET is supported only for siteId = rm.");
|
||||||
}
|
}
|
||||||
return sites.getRMSite(siteId);
|
return sites.getRMSite(siteId);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user