mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
AVM locking UI evaluators. Actions such as Edit, Update are hidden if the item is locked.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6021 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -43,6 +43,7 @@ import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.model.WCMAppModel;
|
||||
import org.alfresco.repo.avm.AVMNodeConverter;
|
||||
import org.alfresco.service.cmr.avm.AVMService;
|
||||
import org.alfresco.service.cmr.avm.locking.AVMLockingService;
|
||||
import org.alfresco.service.cmr.model.FileInfo;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.security.AuthorityType;
|
||||
@@ -88,8 +89,8 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
||||
private static Log logger = LogFactory.getLog(CreateWebsiteWizard.class);
|
||||
|
||||
protected boolean editMode = false;
|
||||
|
||||
protected String dnsName;
|
||||
|
||||
protected String title;
|
||||
protected String name;
|
||||
protected String description;
|
||||
@@ -99,6 +100,7 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
||||
protected AVMService avmService;
|
||||
protected WorkflowService workflowService;
|
||||
protected PersonService personService;
|
||||
protected AVMLockingService avmLockingService;
|
||||
|
||||
/** datamodel for table of selected forms */
|
||||
protected DataModel formsDataModel = null;
|
||||
@@ -217,6 +219,9 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
||||
// navigate to the Websites folder so we can see the newly created folder
|
||||
this.navigator.setCurrentNodeId(websiteParent.getId());
|
||||
|
||||
// inform the locking service about this new instance
|
||||
this.avmLockingService.addWebProject(avmStore);
|
||||
|
||||
outcome = AlfrescoNavigationHandler.CLOSE_WIZARD_OUTCOME;
|
||||
}
|
||||
return outcome;
|
||||
@@ -370,6 +375,14 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
||||
{
|
||||
this.personService = personService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param avmLockingService The AVMLockingService to set
|
||||
*/
|
||||
public void setAvmLockingService(AVMLockingService avmLockingService)
|
||||
{
|
||||
this.avmLockingService = avmLockingService;
|
||||
}
|
||||
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user