| java.lang.Object org.jivesoftware.util.WebBean org.jivesoftware.util.WebManager
WebManager | public class WebManager extends WebBean (Code) | | A utility bean for Openfire admin console pages.
|
Method Summary | |
public static void | copy(URL src, File dst) Copies the contents at src to dst . | public AuthToken | getAuthToken() Returns the auth token redirects to the login page if an auth token is not found. | public Cache[] | getCaches() | public int | getCurrentPage() | public GroupManager | getGroupManager() | public WebManager | getManager() | public MultiUserChatServer | getMultiUserChatServer() | public int | getPageProperty(String pageName, String property, int defaultValue) | public PresenceManager | getPresenceManager() | public PrivateStorage | getPrivateStore() | public int | getRange() | public int | getRefreshValue(String pageName, int defaultValue) Returns the number of seconds between each page refresh for the specified page for the
current logged user. | public RosterManager | getRosterManager() | public int | getRowsPerPage(String pageName, int defaultValue) Returns the number of rows per page for the specified page for the current logged user.
The rows per page value is stored as a user property. | public XMPPServerInfo | getServerInfo() | public SessionManager | getSessionManager() | public int | getStart() | public User | getUser() Returns the page user or null if one is not found. | public UserManager | getUserManager() | public XMPPServer | getXMPPServer() Returns the XMPP server object -- can get many config items from here. | public boolean | isEmbedded() Returns true if the server is in embedded mode, false otherwise. | public boolean | isServerRunning() | public boolean | isSetupMode() Returns true if the Openfire container is in setup mode, false otherwise. | public void | restart() Restarts the server then sleeps for 3 seconds. | public void | setPageProperty(String pageName, String property, int newValue) | public void | setRange(int range) | public void | setRefreshValue(String pageName, int newValue) Sets the number of seconds between each page refresh for the specified page for the
current logged user. | public void | setRowsPerPage(String pageName, int newValue) Sets the new number of rows per page for the specified page for the current logged user.
The rows per page value is stored as a user property. | public void | setStart(int start) | protected void | showServerDown() | public void | stop() Stops the server then sleeps for 3 seconds. | public void | validateService() |
WebManager | public WebManager()(Code) | | |
getAuthToken | public AuthToken getAuthToken()(Code) | | Returns the auth token redirects to the login page if an auth token is not found.
|
getCurrentPage | public int getCurrentPage()(Code) | | |
getPageProperty | public int getPageProperty(String pageName, String property, int defaultValue)(Code) | | |
getRange | public int getRange()(Code) | | |
getRefreshValue | public int getRefreshValue(String pageName, int defaultValue)(Code) | | Returns the number of seconds between each page refresh for the specified page for the
current logged user. The value is stored as a user property. The same property is being
used for different pages. The encoding format is the following
"pageName1=value,pageName2=value".
Parameters: pageName - the name of the page to look up its stored value. Parameters: defaultValue - the default value to return if no user value was found. the number of seconds between each page refresh for the specified page forthe current logged user. |
getRowsPerPage | public int getRowsPerPage(String pageName, int defaultValue)(Code) | | Returns the number of rows per page for the specified page for the current logged user.
The rows per page value is stored as a user property. The same property is being used for
different pages. The encoding format is the following "pageName1=value,pageName2=value".
Parameters: pageName - the name of the page to look up its stored value. Parameters: defaultValue - the default value to return if no user value was found. the number of rows per page for the specified page for the current logged user. |
getStart | public int getStart()(Code) | | |
getUser | public User getUser()(Code) | | Returns the page user or null if one is not found.
|
getXMPPServer | public XMPPServer getXMPPServer()(Code) | | Returns the XMPP server object -- can get many config items from here.
|
isEmbedded | public boolean isEmbedded()(Code) | | Returns true if the server is in embedded mode, false otherwise.
|
isServerRunning | public boolean isServerRunning()(Code) | | |
isSetupMode | public boolean isSetupMode()(Code) | | Returns true if the Openfire container is in setup mode, false otherwise.
|
restart | public void restart()(Code) | | Restarts the server then sleeps for 3 seconds.
|
setPageProperty | public void setPageProperty(String pageName, String property, int newValue)(Code) | | |
setRange | public void setRange(int range)(Code) | | |
setRefreshValue | public void setRefreshValue(String pageName, int newValue)(Code) | | Sets the number of seconds between each page refresh for the specified page for the
current logged user. The value is stored as a user property. The same property is being
used for different pages. The encoding format is the following
"pageName1=value,pageName2=value".
Parameters: pageName - the name of the page to stored its new value. Parameters: newValue - the new number of seconds between each page refresh. |
setRowsPerPage | public void setRowsPerPage(String pageName, int newValue)(Code) | | Sets the new number of rows per page for the specified page for the current logged user.
The rows per page value is stored as a user property. The same property is being used for
different pages. The encoding format is the following "pageName1=value,pageName2=value".
Parameters: pageName - the name of the page to stored its new value. Parameters: newValue - the new rows per page value. |
setStart | public void setStart(int start)(Code) | | |
showServerDown | protected void showServerDown()(Code) | | |
stop | public void stop()(Code) | | Stops the server then sleeps for 3 seconds.
|
validateService | public void validateService()(Code) | | |
|
|