mirror of
https://github.com/Alfresco/acs-community-packaging.git
synced 2025-09-17 14:21:44 +00:00
Fixed AWC-407 Added helper to Application to get client config git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2114 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
67 lines
1.9 KiB
Java
67 lines
1.9 KiB
Java
package org.alfresco.web.bean.wizard;
|
|
|
|
import java.util.Set;
|
|
|
|
import javax.faces.context.FacesContext;
|
|
|
|
import org.alfresco.model.ContentModel;
|
|
import org.alfresco.web.app.Application;
|
|
import org.alfresco.web.bean.repository.Node;
|
|
|
|
/**
|
|
* Concrete implementation providing the ability to invite users to content.
|
|
*
|
|
* @author gavinc
|
|
*/
|
|
public class InviteContentUsersWizard extends InviteUsersWizard
|
|
{
|
|
private static final String WIZARD_TITLE_ID = "invite_content_title";
|
|
private static final String WIZARD_DESC_ID = "invite_content_desc";
|
|
private static final String STEP1_DESCRIPTION_ID = "invite_content_step1_desc";
|
|
|
|
/** Cache of available content permissions */
|
|
Set<String> contentPermissions = null;
|
|
|
|
/**
|
|
* @see org.alfresco.web.bean.wizard.AbstractWizardBean#getWizardDescription()
|
|
*/
|
|
public String getWizardDescription()
|
|
{
|
|
return Application.getMessage(FacesContext.getCurrentInstance(), WIZARD_DESC_ID);
|
|
}
|
|
|
|
/**
|
|
* @see org.alfresco.web.bean.wizard.AbstractWizardBean#getWizardTitle()
|
|
*/
|
|
public String getWizardTitle()
|
|
{
|
|
return Application.getMessage(FacesContext.getCurrentInstance(), WIZARD_TITLE_ID);
|
|
}
|
|
|
|
@Override
|
|
protected String getStep1DescriptionText()
|
|
{
|
|
return STEP1_DESCRIPTION_ID;
|
|
}
|
|
|
|
@Override
|
|
protected Set<String> getPermissionsForType()
|
|
{
|
|
if (this.contentPermissions == null)
|
|
{
|
|
// TODO: This should really request permissions from TYPE_CONTENT but there are other permissions
|
|
// defined at that level at the moment that get exposed when we don't want them to, see
|
|
// http://www.alfresco.org/jira/browse/AR-343
|
|
this.contentPermissions = this.permissionService.getSettablePermissions(ContentModel.TYPE_CMOBJECT);
|
|
}
|
|
|
|
return this.contentPermissions;
|
|
}
|
|
|
|
@Override
|
|
protected Node getNode()
|
|
{
|
|
return this.browseBean.getDocument();
|
|
}
|
|
}
|