|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openpipeline.server.pages.AdminPage
org.openpipeline.server.pages.LoginPage
public class LoginPage
| Constructor Summary | |
|---|---|
LoginPage()
|
|
| Method Summary | |
|---|---|
boolean |
isAllowed(String pageName)
Return true if the current user is allowed to see this page. |
boolean |
isLoggedIn()
|
boolean |
login()
Log in or log out of the server. |
String |
menu(String header,
String items)
Show a submenu, limiting the items to what the user is allowed to see |
void |
setPageContext(javax.servlet.jsp.PageContext pageContext)
|
String |
showMenuHeader(String head,
String[] pageNames)
If the user is allowed to see any of the listed pages, return the header. |
String |
showMenuItem(String item,
String pageName)
If the user is allowed to see the page, return the item, else return "". |
| Methods inherited from class org.openpipeline.server.pages.AdminPage |
|---|
addMessage, addMessages, checkbox, checkbox, convertParamsToXMLConfig, convertXMLConfigToParams, getBooleanParam, getMessages, getParam, getParam, getParamMap, getParams, handleError, passwordField, populateParams, processPage, radioButton, selectField, selectField, setParam, textArea, textField, textField, textField |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoginPage()
| Method Detail |
|---|
public void setPageContext(javax.servlet.jsp.PageContext pageContext)
public boolean login()
throws IOException
IOException
public boolean isLoggedIn()
throws IOException
IOException
public String showMenuItem(String item,
String pageName)
throws IOException
item - the menu itempageName - the name of the page to test
IOException
public String showMenuHeader(String head,
String[] pageNames)
throws IOException
head - the menu headerpageNames - the name of the pages to test
IOException
public String menu(String header,
String items)
throws IOException
header - submenu headeritems - menu items, rows separated with tab and the item/page separated with |
IOException
public boolean isAllowed(String pageName)
throws IOException
pageName - the page name, for example, "foo.jsp"
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||