public interface PInfranetConnection extends Remote
PInfranetConnection
is used purely as a handle on the client side.
It represents a connection to the BAS server, not to Portal.Modifier and Type | Method and Description |
---|---|
void |
close(boolean logout)
Closes the connection to the Portal server.
|
PControllerBean |
createController(String controllerClass)
Registers the client portion of a component with the BAS server.
|
PModelHandle |
createNewModel(String type)
Creates a new, empty data model.
|
PortalContext |
getContext()
Returns the current connection context.
|
Object |
getModelField(PModelHandle data,
String desc)
Gets a field from a model.
|
boolean |
getPermissionFor(String componentName)
Gets permission to use a component.
|
PRestriction |
getRestrictionOn(String fieldSpecification)
Retrieves the restrictions on a field, for example, whether it is a read-only
field.
|
Properties |
getUserPreferences()
Gets the user's UI preferences.
|
void |
login(String user,
String password,
String url)
Logs
user into the Portal server specified by
url . |
void |
registerApp(String appName,
Locale locale,
Object data)
Registers the application with the BAS server.
|
void |
registerComponent(PRemoteComponent comp,
String controllerClass)
Deprecated.
As of Release 6.1, this method is deprecated and
replaced by
createController and
registerController . |
void |
releaseContext(PortalContext ctx)
Releases the connection retrieved by
getContext() . |
void |
saveUserPreferences()
Save user preferences Properties object.
|
void |
setModelField(PModelHandle data,
String desc,
Object val)
Sets a field in a model to a new value.
|
void |
setUserPreferences(Properties userPrefs)
Deprecated.
use saveUserPreferences()
|
void |
unregisterComponent(PRemoteComponent comp)
Deprecated.
As of Release 6.1, this method is deprecated and
replaced by
unregisterController . |
boolean getPermissionFor(String componentName) throws RemoteException
componentName
- the component's nameRemoteException
- thrown for errorsPRestriction getRestrictionOn(String fieldSpecification) throws RemoteException
fieldSpecification
- the field's specificationPRestriction
object.RemoteException
- thrown for errorsvoid registerApp(String appName, Locale locale, Object data) throws RemoteException
appName
- the application's namelocale
- the client's localedata
- other application-specific dataRemoteException
- thrown for errorsPControllerBean createController(String controllerClass) throws RemoteException
controllerClass
- the class name of the component controllerRemoteException
- thrown in case of failurevoid registerComponent(PRemoteComponent comp, String controllerClass) throws RemoteException
createController
and
registerController
.comp
- the component to registercontrollerClass
- the class name of the component controllerRemoteException
- thrown in case of failurevoid unregisterComponent(PRemoteComponent comp) throws RemoteException
unregisterController
.comp
- the component to unregisterRemoteException
- thrown in case of failurePModelHandle createNewModel(String type) throws RemoteException
type
- the type of model to createRemoteException
- thrown for errorsObject getModelField(PModelHandle data, String desc) throws RemoteException
PModelHandle
only for a field that is itself a model. Use this method when the returned field
data will be sent to the client. For compound specifications, an object
array is returned.data
- the model from which to get a fielddesc
- a description of which field(s) to getRemoteException
- thrown for errorsvoid setModelField(PModelHandle data, String desc, Object val) throws RemoteException
PModelHandle
.data
- the model to set a field indesc
- a description of which field to setval
- the new value to be setRemoteException
- thrown for errorsProperties getUserPreferences() throws RemoteException
Properties
object that contains
the user's preferences.RemoteException
- thrown for errorsvoid saveUserPreferences() throws RemoteException
RemoteException
void setUserPreferences(Properties userPrefs) throws RemoteException
Properties
object.userPrefs
- a Properties
object that contains
the user's preferencesRemoteException
- thrown for errorsvoid login(String user, String password, String url) throws RemoteException
user
into the Portal server specified by
url
.user
- the usernamepassword
- user's passwordurl
- a string containing connection information in URL format,
e.g., pcp://host:portRemoteException
- if login fails.void close(boolean logout) throws RemoteException
logout
- if true, logs out before closing the connectionRemoteException
PortalContext getContext()
getContext()
there must be a corresponding call to
releaseContext()
.releaseContext(com.portal.pcm.PortalContext)
void releaseContext(PortalContext ctx)
getContext()
. For
every call to getContext()
there must be a corresponding
call to releaseContext()
.ctx
- the connection to be released.getContext()
Copyright © 2003, 2023, Oracle and/or its affiliates.