1 package org.alfresco.web.bean.wizard; 2 3 import java.util.Set ; 4 5 import javax.faces.context.FacesContext; 6 7 import org.alfresco.model.ContentModel; 8 import org.alfresco.web.app.Application; 9 import org.alfresco.web.bean.repository.Node; 10 11 16 public class InviteContentUsersWizard extends InviteUsersWizard 17 { 18 private static final String WIZARD_TITLE_ID = "invite_content_title"; 19 private static final String WIZARD_DESC_ID = "invite_content_desc"; 20 private static final String STEP1_DESCRIPTION_ID = "invite_content_step1_desc"; 21 22 23 Set <String > contentPermissions = null; 24 25 28 public String getWizardDescription() 29 { 30 return Application.getMessage(FacesContext.getCurrentInstance(), WIZARD_DESC_ID); 31 } 32 33 36 public String getWizardTitle() 37 { 38 return Application.getMessage(FacesContext.getCurrentInstance(), WIZARD_TITLE_ID); 39 } 40 41 @Override 42 protected String getStep1DescriptionText() 43 { 44 return STEP1_DESCRIPTION_ID; 45 } 46 47 @Override 48 protected Set <String > getPermissionsForType() 49 { 50 if (this.contentPermissions == null) 51 { 52 this.contentPermissions = this.permissionService.getSettablePermissions(ContentModel.TYPE_CONTENT); 53 } 54 55 return this.contentPermissions; 56 } 57 58 @Override 59 protected Node getNode() 60 { 61 return this.browseBean.getDocument(); 62 } 63 } 64 | Popular Tags |