com.arsdigita.acs.ug
Class UserGroupFilter
java.lang.Object
|
+--com.arsdigita.acs.FilterBase
|
+--com.arsdigita.acs.ug.UserGroupFilter
- All Implemented Interfaces:
- Filter
- public class UserGroupFilter
- extends FilterBase
Registered filter to set up variables in request attributes for
user-group pages. Its static initializer registers the filter
to intercept the /groups URL, and to also /group-type where group-type
is a group type that has a virtual directory.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserGroupFilter
public UserGroupFilter()
static void ()
filter
public int filter(HttpServletRequest req,
HttpServletResponse resp,
ServletContext ctx)
throws ACSException
- Processes an incoming URL under /groups or /(group-type) and sets
appropriate request attributes for the requested URL.
After the filter has run successfully, the following request
attributes are set:
- group_id
- group_name
- group_type_pretty_plural
- group_type
- group_type_pretty_name
- group_type_url_p: true if the URL included a group type virtual
directory
- groups_public_dir: the path to the groups public directory root.
- groups_admin_dir: the path to the groups admin directory root.
- group_public_dir: the actual path to where the public files for
a group are to be served from.
- group_admin_dir: the actual path to where the admin files for
a group are to be served from.
- group_public_root_url: the root URL for public group pages
for all groups of this group type.
- group_admin_root_url: the root URL for admin group pages
for all groups of this group type.
- Following copied from interface:
com.arsdigita.acs.Filter
- Parameters:
req
- The servlet requestresp
- The servlet responsectx
- The servlet context- Returns:
- FILTER_RETURN if the caller should not continue processing
the request after the filter is called; FILTER_OK if the
caller should continue procesing the request; FILTER_BREAK if the
caller should not process any more
filters.