. Added Delete Sandbox action to Website view

- Each sandbox (and the user assignment to the web project) can be removed by a Content Manager role user
 - This and the new 'Invite Web Project Users' functionality means sandboxes can now be added and removed from a existing web project
. Web-client ADMIN users can now perform any Content Manager action in the website view

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4440 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-11-24 12:32:39 +00:00
parent 836906285d
commit ec6d0a5ac5
9 changed files with 258 additions and 26 deletions

View File

@@ -67,6 +67,8 @@ public abstract class InviteUsersWizard extends BaseWizardBean
private static final String MSG_INVITED_TO = "invited_to";
private static final String MSG_INVITED_ROLE = "invite_role";
protected static final String STEP_NOTIFY = "notify";
private static final String NOTIFY_YES = "yes";
/** NamespaceService bean reference */
@@ -234,6 +236,23 @@ public abstract class InviteUsersWizard extends BaseWizardBean
return outcome;
}
/**
* @see org.alfresco.web.bean.dialog.BaseDialogBean#getFinishButtonDisabled()
*/
@Override
public boolean getFinishButtonDisabled()
{
boolean disabled = true;
String stepName = Application.getWizardManager().getCurrentStepName();
if (STEP_NOTIFY.equals(stepName))
{
disabled = false;
}
return disabled;
}
/**
* Returns the properties for current user-roles JSF DataModel
*
@@ -462,7 +481,7 @@ public abstract class InviteUsersWizard extends BaseWizardBean
{
String stepName = Application.getWizardManager().getCurrentStepName();
if (stepName.equals("notify"))
if (STEP_NOTIFY.equals(stepName))
{
FacesContext context = FacesContext.getCurrentInstance();