mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD (5.2) to 5.2.N (5.2.1)
127619 jkaabimofrad: Missed changes during resolving conflicts. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127726 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -289,3 +289,4 @@ public interface Nodes
|
|||||||
String PARAM_ISPRIMARY = "isPrimary";
|
String PARAM_ISPRIMARY = "isPrimary";
|
||||||
String PARAM_ASSOC_TYPE = "assocType";
|
String PARAM_ASSOC_TYPE = "assocType";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -124,6 +124,8 @@ public class PublicApiDeclarativeRegistry extends DeclarativeRegistry
|
|||||||
Class<? extends ResourceAction> resAction = null;
|
Class<? extends ResourceAction> resAction = null;
|
||||||
|
|
||||||
String entityId = templateVars.get(ResourceLocator.ENTITY_ID);
|
String entityId = templateVars.get(ResourceLocator.ENTITY_ID);
|
||||||
|
String relationshipId = templateVars.get(ResourceLocator.RELATIONSHIP_ID);
|
||||||
|
|
||||||
switch (rwm.getMetaData().getType())
|
switch (rwm.getMetaData().getType())
|
||||||
{
|
{
|
||||||
case ENTITY:
|
case ENTITY:
|
||||||
@@ -155,6 +157,22 @@ public class PublicApiDeclarativeRegistry extends DeclarativeRegistry
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case RELATIONSHIP:
|
||||||
|
if (StringUtils.isNotBlank(relationshipId))
|
||||||
|
{
|
||||||
|
if (RelationshipResourceAction.ReadById.class.isAssignableFrom(rwm.getResource().getClass()))
|
||||||
|
{
|
||||||
|
resAction = RelationshipResourceAction.ReadById.class;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (RelationshipResourceAction.Read.class.isAssignableFrom(rwm.getResource().getClass()))
|
||||||
|
{
|
||||||
|
resAction = RelationshipResourceAction.Read.class;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -440,3 +458,4 @@ public class PublicApiDeclarativeRegistry extends DeclarativeRegistry
|
|||||||
initWebScript(getNetworkWebScript, "network");
|
initWebScript(getNetworkWebScript, "network");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -90,3 +90,4 @@ public interface Renditions
|
|||||||
*/
|
*/
|
||||||
BinaryResource getContent(NodeRef sourceNodeRef, String renditionId, Parameters parameters);
|
BinaryResource getContent(NodeRef sourceNodeRef, String renditionId, Parameters parameters);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2485,7 +2485,7 @@ public class NodesImpl implements Nodes
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create a new file.
|
// Create a new file.
|
||||||
Node fileNode = createNewFile(parentNodeRef, fileName, nodeTypeQName, content, properties, assocTypeQName, parameters);
|
final Node fileNode = createNewFile(parentNodeRef, fileName, nodeTypeQName, content, properties, assocTypeQName, parameters);
|
||||||
|
|
||||||
// RA-1052
|
// RA-1052
|
||||||
try
|
try
|
||||||
@@ -2852,3 +2852,4 @@ public class NodesImpl implements Nodes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -472,3 +472,4 @@ public class RenditionsImpl implements Renditions, ResourceLoaderAware
|
|||||||
return contentData.getMimetype();
|
return contentData.getMimetype();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -80,3 +80,4 @@ public class QuickShareLinkRenditionsRelation implements
|
|||||||
return quickShareLinks.getRenditions(sharedId);
|
return quickShareLinks.getRenditions(sharedId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user