|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.Action
edu.internet2.middleware.grouper.ui.actions.LowLevelGrouperCapableAction
public abstract class LowLevelGrouperCapableAction
Field Summary | |
---|---|
static String |
HIER_DELIM
|
Constructor Summary | |
---|---|
LowLevelGrouperCapableAction()
|
Method Summary | |
---|---|
ActionForward |
execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Makes HttpSession and GrouperSession available to subclasses Also handles pageSize parameter and times how long is spent in an action |
Object |
findAttribute(String name,
HttpServletRequest request)
Convenience method checks request for attribute. |
Boolean |
getAdvancedSearchMode(HttpSession session)
Place centrally for consistency and to hide session attribute name |
String |
getBrowseMode(HttpSession session)
Place centrally for consistency and to hide session attribute name |
String |
getBrowseNode(HttpSession session)
Place centrally for consistency and to hide session attribute name |
static Cookie |
getCookie(String name,
HttpServletRequest request)
Return a named cookie - so caling code doesn`t have to iterate through Cookie array |
GroupOrStem |
getCurrentGroupOrStem(GrouperSession s,
HttpSession session)
Place centrally for consistency and convenience - gets default specified in media ResourceBundle if none set |
String |
getDefaultRootStemName(HttpSession session)
Return configured stem - or the root stem if none configured |
static NavExceptionHelper |
getExceptionHelper(HttpSession session)
|
String |
getLinkBrowseMode(HttpSession session)
Place centrally for consistency and to hide session attribute name |
int |
getPageSize(HttpSession session)
Convenience method to stop duplication of logic in Actions |
Map |
getTilesAttributes(HttpServletRequest request)
Convenience method to extract tiles attributes as a Map |
abstract ActionForward |
grouperExecute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response,
HttpSession session,
GrouperSession grouperSession)
Action specific - must be implemented by all subclasses |
static boolean |
isEmpty(Object obj)
Convenience method to simplify calling code |
static Map |
readDebugPrefs(HttpServletRequest request)
Functionality moved here from PopulateDebugPrefsAction so can be called from elsewhere |
boolean |
saveDebugPrefs(Map map,
HttpServletRequest request)
|
static void |
setBrowseMode(String mode,
HttpSession session)
Place centrally for consistency and to hide session attribute name |
void |
setBrowseNode(String node,
HttpSession session)
Place centrally for consistency and to hide session attribute name |
static List |
sort(Collection input,
HttpServletRequest request,
String context,
int collectionSize)
This method assumes that there is a HttpSession attribute, 'GrouperComparator', which is an implementation of the GrouperComparator interface. |
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 |
Field Detail |
---|
public static final String HIER_DELIM
Constructor Detail |
---|
public LowLevelGrouperCapableAction()
Method Detail |
---|
public abstract ActionForward grouperExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, HttpSession session, GrouperSession grouperSession) throws Exception
Exception
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception
execute
in class Action
Exception
public Map getTilesAttributes(HttpServletRequest request)
public Object findAttribute(String name, HttpServletRequest request)
public static boolean isEmpty(Object obj)
public int getPageSize(HttpSession session)
public String getLinkBrowseMode(HttpSession session)
public String getBrowseMode(HttpSession session)
public static void setBrowseMode(String mode, HttpSession session)
public String getBrowseNode(HttpSession session)
public void setBrowseNode(String node, HttpSession session)
public Boolean getAdvancedSearchMode(HttpSession session)
public GroupOrStem getCurrentGroupOrStem(GrouperSession s, HttpSession session) throws Exception
Exception
public String getDefaultRootStemName(HttpSession session)
session
-
public static Cookie getCookie(String name, HttpServletRequest request)
name
- request
-
public static Map readDebugPrefs(HttpServletRequest request) throws Exception
request
-
Exception
public boolean saveDebugPrefs(Map map, HttpServletRequest request) throws Exception
Exception
public static List sort(Collection input, HttpServletRequest request, String context, int collectionSize)
GrouperComparator
interface. If not present
this method will instantiate an implementation instance using the value for the
media.properties key 'comparator.impl'. The media.properties key 'comparator.sort.limit'
defines the maximum input size that will be sorted. If the input Collection is larger
than this limit, it is effectively returned as is, though if the Collection was not a List
it will be returned as an ArrayList.
input
- the Collection to sortrequest
- the current request objectcontext
- the context in which sorting is taking placecollectionSize
- is the total size of the collection, or -1 if the collection is the entire thing
DefaultComparatorImpl
public static NavExceptionHelper getExceptionHelper(HttpSession session)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |