more javadoc in wizard, simplified permission definitions for AVM website roles

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4035 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-10-05 12:13:01 +00:00
parent fba8822043
commit bdb85b693a

View File

@@ -38,6 +38,9 @@ public class DeleteWebsiteDialog extends DeleteSpaceDialog
// ------------------------------------------------------------------------------
// Dialog implementation
/**
* @see org.alfresco.web.bean.dialog.BaseDialogBean#finishImpl(javax.faces.context.FacesContext, java.lang.String)
*/
@Override
protected String finishImpl(FacesContext context, String outcome) throws Exception
{
@@ -47,7 +50,6 @@ public class DeleteWebsiteDialog extends DeleteSpaceDialog
String storeRoot = (String)websiteNode.getProperties().get(ContentModel.PROP_AVMSTORE);
// get the list of users who have a sandbox in the website
int index = 0;
List<ChildAssociationRef> userInfoRefs = nodeService.getChildAssocs(
websiteNode.getNodeRef(), ContentModel.ASSOC_WEBUSER, RegexQNamePattern.MATCH_ALL);
for (ChildAssociationRef ref : userInfoRefs)
@@ -69,6 +71,11 @@ public class DeleteWebsiteDialog extends DeleteSpaceDialog
return super.finishImpl(context, outcome);
}
/**
* Delete a store, checking for its existance first.
*
* @param store
*/
private void deleteStore(String store)
{
// check it exists before we try to remove it