|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.arsdigita.acs.portals.PortalsProcs
Constructor Summary | |
PortalsProcs()
|
Method Summary | |
static ContextBarWs |
adminContextBar()
Same as adminContextBar(false) |
static ContextBarWs |
adminContextBar(boolean finalP)
Generates a standard context bar to use for portal admin pages |
static ContextBarWs |
adminContextBar(String sectionTitle)
Same as adminContextBar(false) + one more link |
static String |
adminFormatOnePortalPage(String currentPage,
String maxPage,
String groupName,
String pageName,
String leftSelect,
String rightSelect,
String extraOptions)
|
static String |
adminHeader(String title)
Generates the admin header for /portals/admin |
static UserInfo |
checkAdministratorMaybeRedirect(HttpServletRequest req,
HttpServletResponse resp)
Same as checkAdministratorMaybeRedirect(req, resp, null, null) |
static UserInfo |
checkAdministratorMaybeRedirect(HttpServletRequest req,
HttpServletResponse resp,
Integer groupId)
Same as checkAdministratorMaybeRedirect(req, resp, groupId.toString(), null); |
static UserInfo |
checkAdministratorMaybeRedirect(HttpServletRequest req,
HttpServletResponse resp,
String groupId,
String redirectLocation)
Redirects to user registration unless the user is a portal administrator (role of "administrator" in the group "Super Administrators" of type "portal_group") |
static AdSet |
getDisplayInfo()
Returns the subset of portals parameters associated with the display of each portlet |
static String |
getSuperAdminGroupId()
Returns the group_id of the portals Super Administrators group |
static String |
groupName(Integer groupId)
Casts argument to string and returns with calll to groupName(String ...) |
static String |
groupName(String groupId)
Returns the group name associated with groupId. |
static String |
portalsParam(String name)
Same as portalsParam(name, null) |
static String |
portalsParam(String name,
String defaultValue)
Returns the portals parameter for name. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public PortalsProcs()
Method Detail |
public static String portalsParam(String name, String defaultValue)
name
- the name of the parameterdefault
- any default value to assignpublic static String portalsParam(String name)
public static String adminHeader(String title)
title
- Title of the current pagepublic static ContextBarWs adminContextBar(boolean finalP)
finalP
- If true, doesn't make the the section linkablepublic static ContextBarWs adminContextBar()
public static ContextBarWs adminContextBar(String sectionTitle)
public static String groupName(String groupId) throws SQLException, ACSException
groupId
- The group whose name we wantspublic static String groupName(Integer groupId) throws SQLException, ACSException
public static String getSuperAdminGroupId() throws SQLException, ACSException
public static UserInfo checkAdministratorMaybeRedirect(HttpServletRequest req, HttpServletResponse resp, Integer groupId) throws SQLException, IOException, ACSException
public static UserInfo checkAdministratorMaybeRedirect(HttpServletRequest req, HttpServletResponse resp, String groupId, String redirectLocation) throws SQLException, IOException, ACSException
userId
- User id of the person we are checking. If "0", we redirect.groupId
- optional argument. If specified, user must also be an administrator of that group.redirectLocation
- Where to redirect (defaults to /register)public static UserInfo checkAdministratorMaybeRedirect(HttpServletRequest req, HttpServletResponse resp) throws SQLException, IOException, ACSException
public static AdSet getDisplayInfo()
public static String adminFormatOnePortalPage(String currentPage, String maxPage, String groupName, String pageName, String leftSelect, String rightSelect, String extraOptions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |