mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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/HEAD/root@126358 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -86,7 +86,7 @@ public class NodesEntityResource implements
|
|||||||
@Override
|
@Override
|
||||||
@WebApiDescription(title = "Upload content", description = "Upload content")
|
@WebApiDescription(title = "Upload content", description = "Upload content")
|
||||||
@BinaryProperties({"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);
|
nodes.updateContent(fileNodeId, contentInfo, stream, parameters);
|
||||||
}
|
}
|
||||||
|
@@ -65,7 +65,7 @@ public interface BinaryResourceAction
|
|||||||
* @param contentInfo Basic information about the content stream
|
* @param contentInfo Basic information about the content stream
|
||||||
* @param params {@link Parameters}
|
* @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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -173,7 +173,7 @@ public class ResourceWebScriptPut extends AbstractResourceWebScript implements P
|
|||||||
throw new DeletedResourceException("(UPDATE) "+resource.getMetaData().getUniqueId());
|
throw new DeletedResourceException("(UPDATE) "+resource.getMetaData().getUniqueId());
|
||||||
}
|
}
|
||||||
BinaryResourceAction.Update binUpdater = (BinaryResourceAction.Update) resource.getResource();
|
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
|
//Don't pass anything to the callback - its just successful
|
||||||
return null;
|
return null;
|
||||||
default:
|
default:
|
||||||
|
@@ -22,7 +22,7 @@ public class FlockEntityResource implements BinaryResourceAction.Read, BinaryRes
|
|||||||
@Override
|
@Override
|
||||||
@WebApiDescription(title = "Updates a photo")
|
@WebApiDescription(title = "Updates a photo")
|
||||||
@BinaryProperties("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;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -18,7 +18,7 @@ public class FlocketEntityResource implements BinaryResourceAction.Read, BinaryR
|
|||||||
@Override
|
@Override
|
||||||
@WebApiDescription(title = "Updates a flocket")
|
@WebApiDescription(title = "Updates a flocket")
|
||||||
@BinaryProperties({"photo","album"})
|
@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;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user