public class PortalClientContext extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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?
|
protected String m_portalEndpoint
protected AuthCredentials m_authCredentials
protected boolean m_inProc
protected boolean m_isAuthenticated
protected String m_remoteVMID
protected boolean m_enableInprocCheck
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 runtimepublic 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 resultsprotected String getEndpoint(String serviceEndpoint)
serviceEndpoint
- the relative web service endpoint pathpublic IdirectorySystemPortType getIdirectorySystemPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be nullWSClientException
public IdirectoryServicePortType getIdirectoryServicePortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be nullWSClientException
public IprincipalPortType getIprincipalPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be nullWSClientException
public IprincipalAttributePortType getIprincipalAttributePortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be nullWSClientException
public IuserPortType getIuserPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be nullWSClientException
public IaccessPortType getIaccessPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be nullWSClientException
public IbasicPortType getIbasicPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be nullWSClientException
public ItaskPortType getItaskPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be nullWSClientException
public IaliasPortType getIaliasPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be nullWSClientException
public IsystemPortType getIsystemPortType(AuthCredentials authCredentials) throws WSClientException
authCredentials
- the credentials to authenticate against MWS with, may be nullWSClientException
protected String getRemoteVMID()
protected void checkRemoteVMID()