com.atlassian.jira.plugins.projectpanel.admin
Class ProjectGroupAdminTabPanel

java.lang.Object
  extended by com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel
      extended by com.atlassian.jira.plugins.projectpanel.admin.ProjectGroupAdminTabPanel
All Implemented Interfaces:
com.atlassian.jira.plugin.projectpanel.ProjectTabPanel

public class ProjectGroupAdminTabPanel
extends com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel

FQCN : com.atlassian.jira.plugins.projectpanel.admin.ProjectGroupAdminTabPanel

Since:
Description : Provide a Project Tab Panel dedicated to Group Management
Author:
Kaamelot - 2006

Field Summary
protected  AdminProjectManager adminProjectManager
           
protected static java.lang.String ADMINPROJECTMANAGER_PARAM_KEY
           
protected  AdminProjectManagerDirectory adminProjectManagerDirectory
           
protected static java.lang.String CONDITION_PARAM_KEY
           
protected static java.lang.String DEFAULT_VIEW
           
protected static java.lang.String NEW_USER_VIEW
           
protected  com.opensymphony.user.UserManager userManager
           
 
Fields inherited from class com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel
descriptor
 
Constructor Summary
ProjectGroupAdminTabPanel(com.atlassian.jira.security.JiraAuthenticationContext authenticationContext, AdminProjectManager adminProjectManager, com.opensymphony.user.UserManager userManager, AdminProjectManagerDirectory _adminProjectManagerDirectory)
           
 
Method Summary
protected  java.lang.String getAdminProjectManagerKey()
           
protected  java.util.Collection getAuthorizedGroups(org.ofbiz.core.entity.GenericValue _project, java.util.Map _params)
           
protected  java.util.Collection getAuthorizingGroups(org.ofbiz.core.entity.GenericValue _project)
           
protected  com.atlassian.plugin.web.Condition getCondition()
           
protected  java.util.Collection getCreateUserAuthorizingGroups(org.ofbiz.core.entity.GenericValue _project)
           
protected  com.atlassian.jira.plugin.projectpanel.ProjectTabPanelModuleDescriptor getDescriptor()
           
 java.lang.String getFilteringGroupName()
           
 java.lang.String getHtml(com.atlassian.jira.web.action.browser.Browser browser)
           
 java.util.Map getManageableGroupParameters()
           
protected  java.util.Collection getManageableGroups(org.ofbiz.core.entity.GenericValue _project, java.util.Map _params)
           
 java.util.Map getVelocityParameters()
           
 void init(com.atlassian.jira.plugin.projectpanel.ProjectTabPanelModuleDescriptor descriptor)
           
 boolean showPanel(com.atlassian.jira.web.action.ProjectActionSupport action, org.ofbiz.core.entity.GenericValue _project)
           
 
Methods inherited from class com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel
getIssueConstant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADMINPROJECTMANAGER_PARAM_KEY

protected static final java.lang.String ADMINPROJECTMANAGER_PARAM_KEY
See Also:
Constant Field Values

CONDITION_PARAM_KEY

protected static final java.lang.String CONDITION_PARAM_KEY
See Also:
Constant Field Values

DEFAULT_VIEW

protected static final java.lang.String DEFAULT_VIEW
See Also:
Constant Field Values

NEW_USER_VIEW

protected static final java.lang.String NEW_USER_VIEW
See Also:
Constant Field Values

adminProjectManager

protected AdminProjectManager adminProjectManager

adminProjectManagerDirectory

protected AdminProjectManagerDirectory adminProjectManagerDirectory

userManager

protected com.opensymphony.user.UserManager userManager
Constructor Detail

ProjectGroupAdminTabPanel

public ProjectGroupAdminTabPanel(com.atlassian.jira.security.JiraAuthenticationContext authenticationContext,
                                 AdminProjectManager adminProjectManager,
                                 com.opensymphony.user.UserManager userManager,
                                 AdminProjectManagerDirectory _adminProjectManagerDirectory)
Method Detail

init

public void init(com.atlassian.jira.plugin.projectpanel.ProjectTabPanelModuleDescriptor descriptor)
Specified by:
init in interface com.atlassian.jira.plugin.projectpanel.ProjectTabPanel
Overrides:
init in class com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel

getDescriptor

protected com.atlassian.jira.plugin.projectpanel.ProjectTabPanelModuleDescriptor getDescriptor()

getAdminProjectManagerKey

protected java.lang.String getAdminProjectManagerKey()
Returns:
AdminProjectManager Key to use to retrieve AdminProjectManager from AdminProjectManagerDirectory

getCondition

protected com.atlassian.plugin.web.Condition getCondition()
Returns:
AdminProjectManager Key to use to retrieve AdminProjectManager from AdminProjectManagerDirectory

getHtml

public java.lang.String getHtml(com.atlassian.jira.web.action.browser.Browser browser)

getAuthorizingGroups

protected java.util.Collection getAuthorizingGroups(org.ofbiz.core.entity.GenericValue _project)
Parameters:
_project -
Returns:
Collection of Groups providing the ability to manage current Project Group Members

getCreateUserAuthorizingGroups

protected java.util.Collection getCreateUserAuthorizingGroups(org.ofbiz.core.entity.GenericValue _project)
Parameters:
_project -
Returns:
Collection of Groups providing the ability to manage current Project Group Members

getAuthorizedGroups

protected java.util.Collection getAuthorizedGroups(org.ofbiz.core.entity.GenericValue _project,
                                                   java.util.Map _params)
Returns:
List of Groups identified in Project associated PermissionScheme and having _permission Permissions

getManageableGroups

protected java.util.Collection getManageableGroups(org.ofbiz.core.entity.GenericValue _project,
                                                   java.util.Map _params)
Returns:
List of Groups identified in Project associated PermissionScheme and having _permission Permissions

getManageableGroupParameters

public java.util.Map getManageableGroupParameters()
Returns:
Map of Parameters required to identified Manageable Group

getFilteringGroupName

public java.lang.String getFilteringGroupName()
Returns:
Filtering Group to user for UserPicker selection

getVelocityParameters

public java.util.Map getVelocityParameters()

showPanel

public boolean showPanel(com.atlassian.jira.web.action.ProjectActionSupport action,
                         org.ofbiz.core.entity.GenericValue _project)
Specified by:
showPanel in interface com.atlassian.jira.plugin.projectpanel.ProjectTabPanel
Overrides:
showPanel in class com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel


Copyright © 2007-2008 Kaamelot Plugins. All Rights Reserved.