|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.portalclient.PortalClientContext
public class PortalClientContext
Field Summary | |
---|---|
protected AuthCredentials |
m_authCredentials
The authentication credentials to connect to MWS with |
protected boolean |
m_enableInprocCheck
Is the in-process check enabled for this context |
protected boolean |
m_inProc
Is this context running within the same MWS process that the endpoint is referencing |
protected boolean |
m_isAuthenticated
Is this context connected and authenticated with the target MWS |
protected String |
m_portalEndpoint
The MWS endpoint this context will connect to |
protected String |
m_remoteVMID
The VMID of the remote MWS process instance |
Constructor Summary | |
---|---|
PortalClientContext()
Default constructor |
|
PortalClientContext(String portalServerURL)
Create a new instance for a MWS frontend URL |
|
PortalClientContext(String portalServerURL,
AuthCredentials authCred)
Create a new instance for a MWS frontend URL |
|
PortalClientContext(String portalServerURL,
AuthCredentials authCred,
boolean enableInprocCheck)
Create a new client context instance for a MWS frontend URL |
Method Summary | |
---|---|
protected void |
checkRemoteVMID()
Determine if the serviceEndpoint Portal is the same Portal we're running in. |
AuthCredentials |
getAuthCredentials()
Get the AuthCredentials object used to authenticate the MWS session |
protected String |
getEndpoint(String serviceEndpoint)
Construct a MWS service endpoint. |
IaccessPortType |
getIaccessPortType(AuthCredentials authCredentials)
Get the IaccessPortType interface for invoking access control services using this client context |
IaliasPortType |
getIaliasPortType(AuthCredentials authCredentials)
Get the IaliasPortType interface for invoking MWS alias services using this client context |
IbasicPortType |
getIbasicPortType(AuthCredentials authCredentials)
Get the getIbasicPortType interface for invoking basic services using this client context |
IdirectoryServicePortType |
getIdirectoryServicePortType(AuthCredentials authCredentials)
Get the IdirectoryServicePortType interface for invoking directory web services using this client context |
IdirectorySystemPortType |
getIdirectorySystemPortType(AuthCredentials authCredentials)
Get the IdirectorySystemPortType interface for invoking directory web services using this client context. |
IprincipalAttributePortType |
getIprincipalAttributePortType(AuthCredentials authCredentials)
Get the IprincipalAttributePortType interface for invoking directory principal attributes services using this client context |
IprincipalPortType |
getIprincipalPortType(AuthCredentials authCredentials)
Get the IprincipalPortType interface for invoking directory principal services using this client context |
IsystemPortType |
getIsystemPortType(AuthCredentials authCredentials)
Get the IsystemPortType interface for invoking MWS system services using this client context |
ItaskPortType |
getItaskPortType(AuthCredentials authCredentials)
Get the ItaskPortType interface for invoking MWS task services using this client context |
IuserPortType |
getIuserPortType(AuthCredentials authCredentials)
Get the getIuserPortType interface for invoking user services using this client context |
String |
getPortalServerURL()
Get the MWS server endpoint URL for this client context |
IWSClientProxy |
getPortType(AuthCredentials authCredentials,
Class clazz,
boolean useCache)
Factory function to simplify getting references to the various port types exposed by the portalclient API |
protected String |
getRemoteVMID()
Get the VMID of the MWS process we are connecting to |
boolean |
isAuthenticated()
Is this client context successfully connected and authenticated with MWS |
boolean |
isInProc()
Is this PortalClientContext running in the same process as the endpoint it is connected to? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String m_portalEndpoint
protected AuthCredentials m_authCredentials
protected boolean m_inProc
protected boolean m_isAuthenticated
protected String m_remoteVMID
protected boolean m_enableInprocCheck
Constructor Detail |
---|
public PortalClientContext()
public PortalClientContext(String portalServerURL)
portalServerURL
- the MWS frontend URL (e.g. http://localhost:8585)public PortalClientContext(String portalServerURL, AuthCredentials authCred)
portalServerURL
- the MWS frontend URL (e.g. http://localhost:8585)authCred
- the MWS authentication credentialspublic PortalClientContext(String portalServerURL, AuthCredentials authCred, boolean enableInprocCheck)
portalServerURL
- the MWS frontend URL (e.g. http://localhost:8585)authCred
- the MWS authentication credentialsenableInprocCheck
- true to enable check that PortalClient is not running with the target MWS runtimeMethod Detail |
---|
public String getPortalServerURL()
public AuthCredentials getAuthCredentials()
public boolean isInProc()
public boolean isAuthenticated()
public IWSClientProxy getPortType(AuthCredentials authCredentials, Class clazz, boolean useCache)
authCredentials
- the authentication credentials to connect to MWS withclazz
- the web service interface class to proxyuseCache
- enable caching of web service results
protected String getEndpoint(String serviceEndpoint)
serviceEndpoint
- the relative web service endpoint path
public IdirectorySystemPortType getIdirectorySystemPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be null
WSClientException
public IdirectoryServicePortType getIdirectoryServicePortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be null
WSClientException
public IprincipalPortType getIprincipalPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be null
WSClientException
public IprincipalAttributePortType getIprincipalAttributePortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be null
WSClientException
public IuserPortType getIuserPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be null
WSClientException
public IaccessPortType getIaccessPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be null
WSClientException
public IbasicPortType getIbasicPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be null
WSClientException
public ItaskPortType getItaskPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be null
WSClientException
public IaliasPortType getIaliasPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be null
WSClientException
public IsystemPortType getIsystemPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be null
WSClientException
protected String getRemoteVMID()
protected void checkRemoteVMID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |