|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Server-side interface that represents the server. It provides access to other server-side objects such as AgiDatabases, AgiTables, and AgiMailAccounts. This interface extends AgiAdmServer and adds some public methods.
When business object server events are fired, the source of those events
(available via evt.getSource()
) will be an object
implementing this interface. From a page, the following
code will return an object implementing AgiServer:
AgiServer s = ((AgoHttpRequestEvent)getCurrentRequest()).getServer();
AgiAdmServer
,
AgiPrincipalFactory
Fields inherited from interface com.sssw.rts.adminapi.AgiAdmContainer |
GET_CHILDREN_EX,
GET_CHILDREN_NTDOMAINS_PRIMARY_ONLY,
GET_CHILDREN_NTDOMAINS_TRUSTED_ONLY,
GET_CHILDREN_SORTED,
GET_CHILDREN_WITH_INFO |
Fields inherited from interface com.sssw.rts.adminapi.AgiAdmElement |
ACL_KEY,
APPLY_TO_DESC,
APPLY_TO_DESC_SUPPORTED,
DIRECTORY_LIST_SECURITY,
GET_PERMS_AS_ACL,
GET_PERMS_DEFAULT,
PROP_CERTIFICATE,
PROP_DESCRIPTION,
PROP_DOMAIN,
PROP_FULL_NAME,
PROP_IS_LOCKSMITH,
PROP_LDAP_SERVER,
PROP_NAME,
PROP_NISPLUS_SERVER,
PROP_PARENT_URL,
PROP_PASSWORD,
PROP_QUAL_NAME,
PROP_TYPE,
PROP_URL,
REQUIRE_LOGIN,
REQUIRE_LOGIN_SUPPORTED |
Fields inherited from interface com.sssw.rts.adminapi.AgiAdmContainerBase |
GET_CHILDREN_DFLT |
Method Summary | |
AgiCluster |
getCluster()
Return an AgiCluster object representing the cluster this server is in, or return null if the server is not in a clustered environment. |
AgiMailAccount |
getMailAccount(String acctName)
Returns a reference to AgiMailAccount object. |
File |
getServerInstallDirectory()
Get the application root, the location at which the server is installed. |
AgiSession |
getServerSession()
Gets the session associated with this server object. |
AgiAdmStatElement |
getStatElement(String path)
Get an AgiAdmStatElement object that is managed by the server |
AgiAdmStatContainer |
getStatServer()
Get the AgiAdmStatContainer object (that handles server statisics and is the container to the rest of the statistics object for this server) |
AgiAdmStatSet |
getStatSet()
Instantiate a statistics set object. |
Methods implemented from interface com.sssw.srv.api.AgiDatabaseMgr |
getDatabase |
Methods implemented from interface com.sssw.rts.adminapi.AgiAdmElement |
getPermissions,
getServerURL,
getURL,
getVariables,
isAuthorized,
setPermissions |
Methods implemented from interface com.sssw.rts.adminapi.AgiAdmContainerBase |
addChild,
getChild,
getChildren |
Methods implemented from interface com.sssw.rts.adminapi.AgiAdmElementBase |
delete,
getName,
getType |
Methods implemented from interface com.sssw.rts.adminapi.AgiAdmPropertyBag |
getProperties,
getProperty,
setProperties,
setProperty |
Methods implemented from interface com.sssw.rts.adminapi.AgiAdmChanges |
cancelChanges,
saveChanges |
Method Detail |
public AgiSession getServerSession()
Each client has a session associated it with and normally method will return that session. In addition, each server has a default server session that lasts the life of the server and this method when there isn't a client session available (e.g., in a server start business object, there is no client session associated with it) will return that session.
Rather than use this method, it is more likely one of the following would be used:
// from a business object AgiSession sess = evt.getSession(); // from a page AgiSession sess = ((AgoHttpRequestEvent)getCurrentRequest()).getSession(); // with an AgiServer AgiSession sess = server.getServerSession();
public AgiMailAccount getMailAccount(String acctName)
An AgiMailAccount object is available only for mail accounts that the server is configured to get mail for.
The following code gets an AgiMailAccount object for a mail account called "mailinglist".
AgiMailAccount acct = getMailAccount("mailinglist");
AgiAdmServer.getMailAccountObject()
public AgiCluster getCluster()
public File getServerInstallDirectory()
public AgiAdmStatContainer getStatServer() throws AgoUnrecoverableSystemException, AgoSecurityException
public AgiAdmStatElement getStatElement(String path) throws AgoUnrecoverableSystemException, AgoSecurityException
path
- public AgiAdmStatSet getStatSet()
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |