edu.internet2.middleware.grouper.ui.actions
Class PopulateSubjectSummaryAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by edu.internet2.middleware.grouper.ui.actions.LowLevelGrouperCapableAction
          extended by edu.internet2.middleware.grouper.ui.actions.GrouperCapableAction
              extended by edu.internet2.middleware.grouper.ui.actions.PopulateSubjectSummaryAction

public class PopulateSubjectSummaryAction
extends GrouperCapableAction

Top level Strut's action which retrieves and makes available a Subject.

Request Parameter Direction Description

callerPageId

IN Id of previous page

subjectId

IN Identifies the Subject we are viewing the summary for

subjectType

IN Identifies the type of the Subject we are viewing the summary for

sourceId

IN Identifies the source of the Subject we are viewing the summary for

contextSubject

OUT Added to links so that other pages know to return here

membershipListScope

IN imm, eff, all, access or naming - determines scope of membership list or whether groups where subject has specified Access privilege, or Stems where subject has specified Naming privilege, are shown

returnTo

IN Where to return to

returnToLinkKey

IN Label to use for return link

accessPriv

IN/OUT selected Access privilege - only used if scope=access

namingPriv

IN/OUT selected Naming privilege - only used if scope=naming

changeMode

IN if true then chnage browse mode to Subject Search

listField

IN User selected list field

advancedSearch

IN If false, cancels group search for privileges
Request Attribute Direction Description
subject OUT subject which we are showing summary for
subjectAttributeNames OUT names of all subject atributes to be displayed on page

scopeListData

OUT Map of keys so correct labels for selected scope can be used

pager

OUT CollectionPager used to render user selection

allAccessPrivs

OUT Array of privileges user can select from

allNamingPrivs

OUT Array of privileges user can select from
listFields OUT List of available list fields for group - to enable user to change view
listFieldParams OUT Map used to make link parameters
memberOfListFields OUT List of list fields the subject is a member of

pagerParams

OUT Map which is copy of pager parameters - can be used when generating links

saveParams

OUT Map of parameters for link allowing Subject to be saved to list

fromSubjectSummary

OUT Boolean which indicates to group search that user is finding privileges for group search results
Session Attribute Direction Description
subtitle=subject.action.show-summary OUT Key resolved in nav ResourceBundle
lastSubjectSummaryForm IN/OUT If no subject id passed in retrieve last details. Save details - can link to subject summary without parameters
subjectMembershipListScope IN/OUT If request parameter for membershipListScope is not present, read this session attribute. Save current value to session
subjectSummaryAccessPriv IN/OUT If request parameter for accessPriv is not present, read this session attribute. Save current value to session
subjectSummaryNamingPriv IN/OUT If request parameter for namingPriv is not present, read this session attribute. Save current value to session
groupSearchSubject OUT A Subject object so that group search machinery can find appropriate privileges
groupSearchSubjectMap OUT A SubjectAsMap object so that group search UI can indicate in the UI who the privileges belong to
Strut's Action Parameter Direction Description
     

Version:
$Id: PopulateSubjectSummaryAction.java,v 1.28 2009-10-22 14:01:06 mchyzer Exp $
Author:
Gary Brown.

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.ui.actions.GrouperCapableAction
HIER_DELIM
 
Constructor Summary
PopulateSubjectSummaryAction()
           
 
Method Summary
 ActionForward grouperExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, HttpSession session, GrouperSession grouperSession)
          Action specific - must be implemented by all subclasses
 
Methods inherited from class edu.internet2.middleware.grouper.ui.actions.GrouperCapableAction
clearCallerPageHistory, execute, getCallerPageData, getPageSize, grouperTransactionExecute, restoreDynaFormBean, saveAsCallerPage, saveAsCallerPage, saveDynaFormBean, setAdvancedSearchMode
 
Methods inherited from class edu.internet2.middleware.grouper.ui.actions.LowLevelGrouperCapableAction
findAttribute, getAdvancedSearchMode, getBrowseMode, getBrowseNode, getCookie, getCurrentGroupOrStem, getDefaultRootStemName, getExceptionHelper, getLinkBrowseMode, getTilesAttributes, isEmpty, readDebugPrefs, saveDebugPrefs, setBrowseMode, setBrowseNode, sort
 
Methods inherited from class org.apache.struts.action.Action
execute, getServlet, setServlet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopulateSubjectSummaryAction

public PopulateSubjectSummaryAction()
Method Detail

grouperExecute

public ActionForward grouperExecute(ActionMapping mapping,
                                    ActionForm form,
                                    HttpServletRequest request,
                                    HttpServletResponse response,
                                    HttpSession session,
                                    GrouperSession grouperSession)
                             throws Exception
Description copied from class: GrouperCapableAction
Action specific - must be implemented by all subclasses

Specified by:
grouperExecute in class GrouperCapableAction
Throws:
Exception