mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Code review comments
This commit is contained in:
@@ -165,8 +165,7 @@ public class HoldsAPI extends BaseAPI
|
|||||||
*/
|
*/
|
||||||
public HttpResponse addItemToHold(String user, String password, String itemNodeRef, String holdName)
|
public HttpResponse addItemToHold(String user, String password, String itemNodeRef, String holdName)
|
||||||
{
|
{
|
||||||
return addItemsToHolds(user, password, SC_OK, Collections.singletonList(itemNodeRef),
|
return addItemsToHolds(user, password, Collections.singletonList(itemNodeRef), Collections.singletonList(holdName));
|
||||||
Collections.singletonList(holdName));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -178,8 +177,7 @@ public class HoldsAPI extends BaseAPI
|
|||||||
* @param holdNames the list of holds
|
* @param holdNames the list of holds
|
||||||
* @return The HTTP response
|
* @return The HTTP response
|
||||||
*/
|
*/
|
||||||
public HttpResponse addItemsToHolds(String user, String password, List<String> itemNodeRefs,
|
public HttpResponse addItemsToHolds(String user, String password, List<String> itemNodeRefs, List<String> holdNames)
|
||||||
List<String> holdNames)
|
|
||||||
{
|
{
|
||||||
return addItemsToHolds(user, password, SC_OK, itemNodeRefs, holdNames);
|
return addItemsToHolds(user, password, SC_OK, itemNodeRefs, holdNames);
|
||||||
}
|
}
|
||||||
@@ -252,8 +250,7 @@ public class HoldsAPI extends BaseAPI
|
|||||||
*/
|
*/
|
||||||
public HttpResponse removeItemFromHold(String user, String password, String itemNodeRef, String holdName)
|
public HttpResponse removeItemFromHold(String user, String password, String itemNodeRef, String holdName)
|
||||||
{
|
{
|
||||||
return removeItemsFromHolds(user, password, SC_OK, Collections.singletonList(itemNodeRef),
|
return removeItemsFromHolds(user, password, Collections.singletonList(itemNodeRef), Collections.singletonList(holdName));
|
||||||
Collections.singletonList(holdName));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -265,8 +262,7 @@ public class HoldsAPI extends BaseAPI
|
|||||||
* @param holdNames the list of hold names
|
* @param holdNames the list of hold names
|
||||||
* @return The HTTP response
|
* @return The HTTP response
|
||||||
*/
|
*/
|
||||||
public HttpResponse removeItemsFromHolds(String user, String password, List<String> itemNodeRefs,
|
public HttpResponse removeItemsFromHolds(String user, String password, List<String> itemNodeRefs, List<String> holdNames)
|
||||||
List<String> holdNames)
|
|
||||||
{
|
{
|
||||||
return removeItemsFromHolds(user, password, SC_OK, itemNodeRefs, holdNames);
|
return removeItemsFromHolds(user, password, SC_OK, itemNodeRefs, holdNames);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user