public interface PInfranetAppController
PInfranetAppController
, one of the main server-side classes,
contains application information and services of interest only to other
server-side classes. One instance of PInfranetAppController
is
created for each client session, and it ties together all
controllers that are created for that session.
The class contains the client session's locale, application name, and other
optional data. It is used to establish connections between
controllers on the server side, using handles passed through the client.
This is how server-side event listeners work, for example,
PRemoteListenerProxy
.
When a connection to Portal is created, this class is used to cache the connection.
All controllers can call getAppController()
to get their
instance of PInfranetAppController
.
PApplicationServices.getAppController()
,
PControllerImpl.getAppController()
Modifier and Type | Method and Description |
---|---|
PInfranetAppController |
duplicate()
Duplicates the application controller.
|
PInfranetAppController |
duplicate(PortalContext c) |
PModelHandle |
getAccountHandle() |
String |
getAppName()
Gets the application name.
|
Locale |
getClientLocale()
Gets the application/client locale.
|
PCachedContext |
getConnection()
Returns the current connection context.
|
EventListener |
getEventListener(Object handle)
Gets an event listener, given a handle generated by
postEventListener . |
Object |
getOtherData()
Gets any other data sent by the client application.
|
PPermission |
getPermissions()
Gets a
PPermission object. |
PModelHandle |
getServiceHandle() |
boolean |
isBrandingEnabled() |
PControllerImpl |
lookupController(PControllerBean comp)
Looks up a controller for a given component.
|
Object |
postEventListener(Object src,
EventListener l)
Posts an event listener and returns a handle for it.
|
void |
registerController(PControllerBean comp,
PControllerImpl impl)
Registers the client portion of a component's controller with the server.
|
void |
releaseConnection(PCachedContext ctx)
Releases the connection retrieved by
getConnection() . |
void |
removeEventListener(Object handle)
Removes a posted event listener.
|
void |
setBrandContext(Poid brandPoid) |
void |
setConnection(PCachedContext conn)
Sets a connection object for application use.
|
void |
unregisterController(PControllerImpl impl)
Unregisters the client portion of a component's controller with the server.
|
void |
unregisterControllers()
Unregisters the client portion of all component's controller with the server.
|
void |
verifyAndSwitchToUser(String user,
String password,
String service) |
PInfranetAppController duplicate() throws RemoteException
RemoteException
- thrown in case of failurePInfranetAppController duplicate(PortalContext c) throws RemoteException
RemoteException
PControllerImpl lookupController(PControllerBean comp) throws RemoteException
comp
- a remote component stubRemoteException
- thrown in case of failureObject postEventListener(Object src, EventListener l) throws RemoteException
src
- the source of the eventl
- an event listenerRemoteException
- thrown in case of failureEventListener getEventListener(Object handle) throws RemoteException
postEventListener
.handle
- a token generated by postEventListener
RemoteException
- thrown in case of failurevoid removeEventListener(Object handle) throws RemoteException
handle
- the handle to the listenerRemoteException
- thrown in case of failurevoid setConnection(PCachedContext conn) throws RemoteException
conn
- a new, cached context objectRemoteException
- thrown in case of failurePCachedContext getConnection() throws RemoteException
getConnection()
there must be a corresponding call to
releaseConnection()
.PCachedContext
object or null.RemoteException
- thrown in case of failurereleaseConnection(com.portal.bas.PCachedContext)
void releaseConnection(PCachedContext ctx) throws RemoteException
getConnection()
. For
every call to getConnection()
there must be a corresponding
call to releaseConnection()
.ctx
- the connection to be released.RemoteException
getConnection()
void registerController(PControllerBean comp, PControllerImpl impl) throws RemoteException
comp
- the component to registerimpl
- the component's controllerRemoteException
- thrown in case of failurevoid unregisterController(PControllerImpl impl) throws RemoteException
impl
- the component's controllerRemoteException
- thrown in case of failurePPermission getPermissions() throws RemoteException
PPermission
object.PPermission
object.RemoteException
- thrown for remote errorsString getAppName() throws RemoteException
String
with the application name,RemoteException
- thrown in case of failureLocale getClientLocale() throws RemoteException
RemoteException
- thrown in case of failureObject getOtherData() throws RemoteException
RemoteException
- thrown in case of failurePModelHandle getServiceHandle() throws RemoteException
RemoteException
PModelHandle getAccountHandle() throws RemoteException
RemoteException
boolean isBrandingEnabled() throws RemoteException
RemoteException
void setBrandContext(Poid brandPoid) throws RemoteException
RemoteException
void verifyAndSwitchToUser(String user, String password, String service) throws RemoteException
RemoteException
void unregisterControllers()
Copyright © 2003, 2023, Oracle and/or its affiliates.