mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
more locking related ui work
- unlocking files on submit - unlocking file on revert - adding AVMLockingAwareService to serviceregistry - locking renditions (using the lockingawareservice) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6040 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -178,7 +178,7 @@ public class RenderingEngineTemplateImpl
|
||||
public String getOutputPathForRendition(final FormInstanceData formInstanceData, final String currentAVMPath)
|
||||
{
|
||||
final ServiceRegistry sr = this.getServiceRegistry();
|
||||
final AVMService avmService = this.getAVMService();
|
||||
final AVMService avmService = sr.getAVMLockingAwareService();
|
||||
|
||||
final String formInstanceDataAVMPath = formInstanceData.getPath();
|
||||
|
||||
@@ -252,7 +252,7 @@ public class RenderingEngineTemplateImpl
|
||||
SAXException,
|
||||
RenderingEngine.RenderingException
|
||||
{
|
||||
final AVMService avmService = this.getAVMService();
|
||||
final AVMService avmService = this.getServiceRegistry().getAVMLockingAwareService();
|
||||
final boolean isRegenerate = avmService.lookup(-1, renditionAvmPath) != null;
|
||||
if (!isRegenerate)
|
||||
{
|
||||
@@ -329,7 +329,7 @@ public class RenderingEngineTemplateImpl
|
||||
new PropertyValue(DataTypeDefinition.TEXT,
|
||||
AVMUtil.getStoreRelativePath(formInstanceData.getPath())));
|
||||
|
||||
final AVMService avmService = this.getAVMService();
|
||||
final AVMService avmService = this.getServiceRegistry().getAVMLockingAwareService();
|
||||
avmService.setNodeProperties(rendition.getPath(), props);
|
||||
}
|
||||
|
||||
@@ -554,11 +554,6 @@ 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();
|
||||
|
Reference in New Issue
Block a user