mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
125605 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125498 slanglois: MNT-16155 Update source headers - remove svn:eol-style property on Java and JSP source files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125783 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
44 lines
1.3 KiB
Java
44 lines
1.3 KiB
Java
package org.alfresco.web.bean.spaces;
|
|
|
|
import java.util.Set;
|
|
|
|
import javax.faces.context.FacesContext;
|
|
|
|
import org.alfresco.web.app.Application;
|
|
import org.alfresco.web.bean.repository.Node;
|
|
import org.alfresco.web.bean.wizard.BaseInviteUsersWizard;
|
|
|
|
/**
|
|
* Concrete implementation providing the ability to invite users to a space.
|
|
*
|
|
* @author gavinc
|
|
*/
|
|
public class InviteSpaceUsersWizard extends BaseInviteUsersWizard
|
|
{
|
|
private static final long serialVersionUID = -1584891656721183347L;
|
|
|
|
@Override
|
|
protected Set<String> getPermissionsForType()
|
|
{
|
|
// Let the permission service do the caching to allow for dynamic model updates, etc.
|
|
return this.permissionService.getSettablePermissions(getNode().getType());
|
|
}
|
|
|
|
@Override
|
|
protected Node getNode()
|
|
{
|
|
return this.browseBean.getActionSpace();
|
|
}
|
|
|
|
@Override
|
|
protected String getEmailTemplateXPath()
|
|
{
|
|
FacesContext fc = FacesContext.getCurrentInstance();
|
|
String xpath = Application.getRootPath(fc) + "/" +
|
|
Application.getGlossaryFolderName(fc) + "/" +
|
|
Application.getEmailTemplatesFolderName(fc) + "/" +
|
|
Application.getInviteEmailTemplatesFolderName(fc) + "//*";
|
|
return xpath;
|
|
}
|
|
}
|