mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Missed changes during resolving conflicts.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127619 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -282,3 +282,4 @@ public interface Nodes
|
|||||||
String PARAM_ISPRIMARY = "isPrimary";
|
String PARAM_ISPRIMARY = "isPrimary";
|
||||||
String PARAM_ASSOC_TYPE = "assocType";
|
String PARAM_ASSOC_TYPE = "assocType";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -117,6 +117,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:
|
||||||
@@ -148,6 +150,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;
|
||||||
}
|
}
|
||||||
@@ -433,3 +451,4 @@ public class PublicApiDeclarativeRegistry extends DeclarativeRegistry
|
|||||||
initWebScript(getNetworkWebScript, "network");
|
initWebScript(getNetworkWebScript, "network");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -83,3 +83,4 @@ public interface Renditions
|
|||||||
*/
|
*/
|
||||||
BinaryResource getContent(NodeRef sourceNodeRef, String renditionId, Parameters parameters);
|
BinaryResource getContent(NodeRef sourceNodeRef, String renditionId, Parameters parameters);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2478,7 +2478,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
|
||||||
@@ -2845,3 +2845,4 @@ public class NodesImpl implements Nodes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -465,3 +465,4 @@ public class RenditionsImpl implements Renditions, ResourceLoaderAware
|
|||||||
return contentData.getMimetype();
|
return contentData.getMimetype();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -73,3 +73,4 @@ public class QuickShareLinkRenditionsRelation implements
|
|||||||
return quickShareLinks.getRenditions(sharedId);
|
return quickShareLinks.getRenditions(sharedId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user