mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.N (5.2.1) to HEAD (5.2)
130271 gjames: Merged searchapi (5.2.1) to 5.2.N (5.2.1) 130008 gjames: Merged 5.2.N-AHIND (5.2.1) to searchapi (5.2.1) 129751 amorarasu: REPO-164 / REPO-1086 - V1 REST API: Lock Node - review suggestions - added more test cases + utility methods git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@130348 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -36,7 +36,6 @@ import org.alfresco.rest.api.model.Document;
|
||||
import org.alfresco.rest.api.model.Folder;
|
||||
import org.alfresco.rest.api.model.LockInfo;
|
||||
import org.alfresco.rest.api.model.Node;
|
||||
import org.alfresco.rest.api.model.UnlockInfo;
|
||||
import org.alfresco.rest.api.model.UserInfo;
|
||||
import org.alfresco.rest.framework.resource.content.BasicContentInfo;
|
||||
import org.alfresco.rest.framework.resource.content.BinaryResource;
|
||||
@@ -256,15 +255,6 @@ public interface Nodes
|
||||
*/
|
||||
Node lock(String nodeId, LockInfo lockInfo, Parameters parameters);
|
||||
|
||||
/**
|
||||
* Unlock a node
|
||||
* @param nodeId
|
||||
* @param unlockInfo
|
||||
* @param parameters
|
||||
* @return
|
||||
*/
|
||||
Node unlock(String nodeId, UnlockInfo unlockInfo, Parameters parameters);
|
||||
|
||||
/**
|
||||
* Unlock a node
|
||||
* @param nodeId
|
||||
|
@@ -48,8 +48,8 @@ public class LockInfo
|
||||
@SuppressWarnings("deprecation")
|
||||
public static enum LockType2
|
||||
{
|
||||
FULL(LockType.READ_ONLY_LOCK),
|
||||
ALLOW_OWNER_CHANGES(LockType.WRITE_LOCK);
|
||||
FULL(LockType.READ_ONLY_LOCK),
|
||||
ALLOW_OWNER_CHANGES(LockType.WRITE_LOCK);
|
||||
// ALLOW_ADD_CHILDREN(LockType.NODE_LOCK); // removed for now, as per REPO-1187
|
||||
|
||||
private LockType type;
|
||||
@@ -58,7 +58,7 @@ public class LockInfo
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
public LockType getType()
|
||||
{
|
||||
return type;
|
||||
@@ -81,7 +81,7 @@ public class LockInfo
|
||||
{
|
||||
return type != null ? type.getType() : null;
|
||||
}
|
||||
|
||||
|
||||
public LockType2 getType()
|
||||
{
|
||||
return type;
|
||||
|
Reference in New Issue
Block a user