com.filenet.wcm.apps.server.util
Class WcmISServerCredentials

java.lang.Object
  extended bycom.filenet.wcm.apps.server.util.WcmISServerCredentials
All Implemented Interfaces:
com.filenet.wcm.toolkit.server.base.WcmUserInformationInterface

public class WcmISServerCredentials
extends java.lang.Object
implements com.filenet.wcm.toolkit.server.base.WcmUserInformationInterface

WcmISServerCredentials maintains credentials required for access to IS server. It also contains the connection object used to continue communicating to the IS server.


Constructor Summary
WcmISServerCredentials(WcmISServer isServer, java.lang.String token)
           
 
Method Summary
 ISRAWrapper getISRAWrapper()
           
 java.util.Map getUserExtraInformation()
           
 java.lang.String getUserId()
           
 java.lang.Exception getValidationException()
          Get the validation Exception when the credentials are invalid.
 boolean hasDeploymentError()
          Verify that this instance of WcmServerCredentials is valid.
 boolean isGuest()
           
 boolean isMemberOf(java.lang.String group)
           
 boolean isMemberOf(java.lang.String[] groups)
           
 boolean isValid()
          Verify that this instance of WcmServerCredentials is valid.
 void setUserId(java.lang.String userId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WcmISServerCredentials

public WcmISServerCredentials(WcmISServer isServer,
                              java.lang.String token)
                       throws java.lang.Exception
Method Detail

getUserId

public java.lang.String getUserId()
Specified by:
getUserId in interface com.filenet.wcm.toolkit.server.base.WcmUserInformationInterface

getUserExtraInformation

public java.util.Map getUserExtraInformation()
Specified by:
getUserExtraInformation in interface com.filenet.wcm.toolkit.server.base.WcmUserInformationInterface

isMemberOf

public boolean isMemberOf(java.lang.String group)
Specified by:
isMemberOf in interface com.filenet.wcm.toolkit.server.base.WcmUserInformationInterface

isMemberOf

public boolean isMemberOf(java.lang.String[] groups)
Specified by:
isMemberOf in interface com.filenet.wcm.toolkit.server.base.WcmUserInformationInterface

isGuest

public boolean isGuest()
Specified by:
isGuest in interface com.filenet.wcm.toolkit.server.base.WcmUserInformationInterface

setUserId

public void setUserId(java.lang.String userId)

getISRAWrapper

public ISRAWrapper getISRAWrapper()

hasDeploymentError

public boolean hasDeploymentError()
Verify that this instance of WcmServerCredentials is valid.

Returns:
true or false

isValid

public boolean isValid()
Verify that this instance of WcmServerCredentials is valid.

Returns:
true or false

getValidationException

public java.lang.Exception getValidationException()
Get the validation Exception when the credentials are invalid.

Returns:
A string describing the credentials validation exception. Returns null if the credentials are valid.


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.