Merged HEAD (5.2) to 5.2.N (5.2.1)

126358 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
      119623 jvonka: RA-663: Update REST fwk - fix BinaryResource update (currently masks entity PUT operation)
      - use "updateProperty" (instead of "update") to be consistent with other binary resource methods
      - note: REST fwk relies on unique method names across the resource actions


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126704 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ancuta Morarasu
2016-05-11 10:47:42 +00:00
parent 0b3aacf260
commit 78a2510b8d
5 changed files with 5 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ public class NodesEntityResource implements
@Override
@WebApiDescription(title = "Upload content", description = "Upload content")
@BinaryProperties({"content"})
public void update(String fileNodeId, BasicContentInfo contentInfo, InputStream stream, Parameters parameters)
public void updateProperty(String fileNodeId, BasicContentInfo contentInfo, InputStream stream, Parameters parameters)
{
nodes.updateContent(fileNodeId, contentInfo, stream, parameters);
}

View File

@@ -90,7 +90,7 @@ public interface BinaryResourceAction
* @param contentInfo Basic information about the content stream
* @param params {@link Parameters}
*/
public void update (String entityId, BasicContentInfo contentInfo, InputStream stream, Parameters params);
public void updateProperty (String entityId, BasicContentInfo contentInfo, InputStream stream, Parameters params);
}
}

View File

@@ -198,7 +198,7 @@ public class ResourceWebScriptPut extends AbstractResourceWebScript implements P
throw new DeletedResourceException("(UPDATE) "+resource.getMetaData().getUniqueId());
}
BinaryResourceAction.Update binUpdater = (BinaryResourceAction.Update) resource.getResource();
binUpdater.update(params.getEntityId(),params.getContentInfo(), params.getStream(), params);
binUpdater.updateProperty(params.getEntityId(),params.getContentInfo(), params.getStream(), params);
//Don't pass anything to the callback - its just successful
return null;
default:

View File

@@ -47,7 +47,7 @@ public class FlockEntityResource implements BinaryResourceAction.Read, BinaryRes
@Override
@WebApiDescription(title = "Updates a photo")
@BinaryProperties("photo")
public void update(String entityId, BasicContentInfo contentInfo, InputStream stream, Parameters params)
public void updateProperty(String entityId, BasicContentInfo contentInfo, InputStream stream, Parameters params)
{
return;
}

View File

@@ -43,7 +43,7 @@ public class FlocketEntityResource implements BinaryResourceAction.Read, BinaryR
@Override
@WebApiDescription(title = "Updates a flocket")
@BinaryProperties({"photo","album"})
public void update(String entityId, BasicContentInfo contentInfo, InputStream stream, Parameters params)
public void updateProperty(String entityId, BasicContentInfo contentInfo, InputStream stream, Parameters params)
{
return;
}