|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that represents a PRC connection
to the portal. An IRemoteSession
contains information
about the current connection
and provides access to object managers that allow the client to
query and manipulate a portal server's state.
IRemoteSession
interface
use RemoteSessionFactory
.
RemoteSessionFactory
Portlets automatically receive the WS Portal (ptapi) SOAP endpoint URL
from the portal and can use
IPortletContext.getRemotePortalSession
to create an IRemoteSession
.
,
IPortletContext.getRemotePortalSession
The PRC remote APIs for the portal, Search Server, Collaboration Server,
and Publisher all require a WS server and a SOAP endpoint URL.
The portal and Search Server can be accessed through WS Portal (ptapi).
Collaboration Server and Publisher each have intrinsic WS servers
to provide PRC remote API access.
The endpoints for these intrinsic WS servers should never be used directly.
All PRC requests should use the WS Portal (ptapi) endpoint
first and will be redirected as needed to Collaboration or Publisher.
To access Collaboration Server and Publisher remote APIs,
first obtain an IRemoteSession
and then retrieve the corresponding
ICollaborationFactory
or IContentFactory
from the session.
No separate Collaboration session or Publisher session is needed to access the
Collaboration or Publisher remote APIs.
Individual Collaboration or Publisher object managers can thus be retrieved using the
ICollaborationFactory
or IContentFactory
.
For portal and Search Server remote APIs, a portal object manager or
ISearchFactory
can be retrieved directly from an IRemoteSession
.
Method Summary | |
java.lang.String |
getAPIVersion()
Returns the current SOAP API version supported by the portal. |
ICollaborationFactory |
getCollaborationFactory()
Returns an ICollaborationFactory object from which other Collaboration managers can be obtained. |
ICommunityManager |
getCommunityManager()
Returns an ICommunityManager object that enables operations on communities. |
IContentFactory |
getContentFactory()
Returns an IContentFactory object from which other Publisher object managers can be obtained. |
IDocumentFolderManager |
getDocumentFolderManager()
Returns an IDocumentFolderManager object to view the portal's
Knowledge Directory folder hierarchy. |
IDocumentManager |
getDocumentManager()
Returns an IDocumentManager object that enables submission of new
documents to the portal. |
java.lang.String |
getEndpointURI()
Returns the SOAP service endpoint URI currently being used by this remote session. |
IJobManager |
getJobManager()
Returns an IJobManager object that enables operations on portal jobs. |
java.lang.String |
getLoginToken()
Returns the portal login token currently being used by this remote session. |
IMyPagesManager |
getMyPagesManager()
Returns an IMyPagesManager object that enables operations on My Pages. |
IObjectManager |
getObjectManager(ObjectClass clazz)
Returns an IObjectManager object for the portal object class
passed in. |
IPortletManager |
getPortletManager()
Returns an IPortletManager that provides information about
existing Portlets and enables creation of new Portlets. |
IPortletTemplateManager |
getPortletTemplateManager()
Returns an IPortletTemplateManager object that
enables creation and deletion of Portlet Templates. |
ISearchFactory |
getSearchFactory()
Returns an ISearchFactory object that allows creating searches against the portal search server. |
IUserGroupManager |
getUserGroupManager()
Returns an IUserGroupManager object that enables management of user groups. |
IUserManager |
getUserManager()
Returns an IUserManager object that provides information about the currently
logged in user. |
Method Detail |
public IPortletManager getPortletManager()
IPortletManager
that provides information about
existing Portlets and enables creation of new Portlets.
IPortletManager
objectpublic IPortletTemplateManager getPortletTemplateManager()
IPortletTemplateManager
object that
enables creation and deletion of Portlet Templates.
IPortletTemplateManager
objectpublic IUserManager getUserManager()
IUserManager
object that provides information about the currently
logged in user.
IUserManager
objectpublic IUserGroupManager getUserGroupManager()
IUserGroupManager
object that enables management of user groups.
IUserGroupManager
objectpublic IObjectManager getObjectManager(ObjectClass clazz)
IObjectManager
object for the portal object class
passed in. An IObjectManager
enables you to query information about
existing objects in the portal. This method does not work with
ObjectClass.DocumentFolder
, and thus it is impossible to query
ACLs on portal document folders.
clazz
- the class of portal object to query
IObjectManager
object for that class of objects
java.lang.IllegalArgumentException
- if an invalid object class is passedpublic IDocumentManager getDocumentManager()
IDocumentManager
object that enables submission of new
documents to the portal.
public IDocumentFolderManager getDocumentFolderManager()
IDocumentFolderManager
object to view the portal's
Knowledge Directory folder hierarchy.
public IJobManager getJobManager()
IJobManager
object that enables operations on portal jobs.
public ICommunityManager getCommunityManager()
ICommunityManager
object that enables operations on communities.
public IMyPagesManager getMyPagesManager()
IMyPagesManager
object that enables operations on My Pages.
public ISearchFactory getSearchFactory()
ISearchFactory
object that allows creating searches against the portal search server.
public ICollaborationFactory getCollaborationFactory()
ICollaborationFactory
object from which other Collaboration managers can be obtained.
public IContentFactory getContentFactory()
IContentFactory
object from which other Publisher object managers can be obtained.
IContentFactory
public java.lang.String getEndpointURI()
IRemoteSession
object was constructed by RemoteSessionFactory
.
com.plumtree.remote.prc.RemoteSessionFactory#getExplicitLoginContext(java.lang.String, java.lang.String, java.lang.String)
,
com.plumtree.remote.prc.RemoteSessionFactory#getTokenContext(java.lang.String, java.lang.String)
public java.lang.String getLoginToken()
IRemoteSession
object was constructed by RemoteSessionFactory
. If the
IRemoteSession
was constructed using a token, this is that
login token. If the IRemoteSession
was constructed using a name
and password, this login token is obtained via a SOAP call to the
Portal Server.
public java.lang.String getAPIVersion() throws PortalException, java.rmi.RemoteException
PortalException
- if the operation resulted in an error in the portal
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©2010 Oracle® Corporation. All Rights Reserved.