mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
first pass at locking related ui work.
- adding lock icons to the ui - using lock aware service for create and edit web content. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6027 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -178,8 +178,7 @@ public class RenderingEngineTemplateImpl
|
||||
public String getOutputPathForRendition(final FormInstanceData formInstanceData, final String currentAVMPath)
|
||||
{
|
||||
final ServiceRegistry sr = this.getServiceRegistry();
|
||||
final NodeService nodeService = sr.getNodeService();
|
||||
final AVMService avmService = sr.getAVMService();
|
||||
final AVMService avmService = this.getAVMService();
|
||||
|
||||
final String formInstanceDataAVMPath = formInstanceData.getPath();
|
||||
|
||||
@@ -253,7 +252,7 @@ public class RenderingEngineTemplateImpl
|
||||
SAXException,
|
||||
RenderingEngine.RenderingException
|
||||
{
|
||||
final AVMService avmService = this.getServiceRegistry().getAVMService();
|
||||
final AVMService avmService = this.getAVMService();
|
||||
final boolean isRegenerate = avmService.lookup(-1, renditionAvmPath) != null;
|
||||
if (!isRegenerate)
|
||||
{
|
||||
@@ -330,7 +329,7 @@ public class RenderingEngineTemplateImpl
|
||||
new PropertyValue(DataTypeDefinition.TEXT,
|
||||
AVMUtil.getStoreRelativePath(formInstanceData.getPath())));
|
||||
|
||||
final AVMService avmService = this.getServiceRegistry().getAVMService();
|
||||
final AVMService avmService = this.getAVMService();
|
||||
avmService.setNodeProperties(rendition.getPath(), props);
|
||||
}
|
||||
|
||||
@@ -555,6 +554,11 @@ public class RenderingEngineTemplateImpl
|
||||
return new FormDataFunctions((AVMRemote)wac.getBean("avmRemote"));
|
||||
}
|
||||
|
||||
private AVMService getAVMService()
|
||||
{
|
||||
return this.getServiceRegistry().getAVMService();
|
||||
}
|
||||
|
||||
private ServiceRegistry getServiceRegistry()
|
||||
{
|
||||
final FacesContext fc = FacesContext.getCurrentInstance();
|
||||
@@ -570,5 +574,6 @@ public class RenderingEngineTemplateImpl
|
||||
{
|
||||
return this.getClass().getName() + "{name : " + this.getName() + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user