|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.mdm.examples.AuthenticatedRepositorySession
Represents an authenticated user session from the API to an MDM repository. Source code for AuthenticatedRepositorySession.java
| Field Summary | |
int |
state
State of the session |
static int |
STATE_CONNECTED
Connected, but no session established yet |
static int |
STATE_NOT_CONNECTED
Initial state: Not (yet) even connected |
static int |
STATE_SESSION_AUTHENTICATED
Ready state: Authenticated user session is established and ready to be used |
static int |
STATE_SESSION_ESTABLISHED
Connected, session established, but not yet authenticated |
| Constructor Summary | |
AuthenticatedRepositorySession()
Prepare session creation using default settings |
|
AuthenticatedRepositorySession(Settings settings)
Prepare session creation from specific settings |
|
AuthenticatedRepositorySession(Settings settings,
ConnectionAccessor connection)
|
|
| Method Summary | |
void |
create()
Create and authenticate a new user session to an MDM repository. |
void |
destroy()
Destroy the session and free reserved resources. |
ConnectionAccessor |
getConnection()
Gets the connection to the MDM server created within the create() method. |
String |
getSession()
Gets the session id. |
static void |
main(String[] args)
Simple main method for testing purposes. |
String |
toString()
Return the session state in human-readable format. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int state
public static final int STATE_NOT_CONNECTED
public static final int STATE_CONNECTED
public static final int STATE_SESSION_ESTABLISHED
public static final int STATE_SESSION_AUTHENTICATED
| Constructor Detail |
public AuthenticatedRepositorySession()
throws ConnectionException
public AuthenticatedRepositorySession(Settings settings)
throws ConnectionException
settings - use these parameters for session creation and authentication
public AuthenticatedRepositorySession(Settings settings,
ConnectionAccessor connection)
| Method Detail |
public void create()
throws ConnectionException,
CommandException
ConnectionException - is propagated from the API
CommandException - is propagated from the API
public void destroy()
throws CommandException
CommandException - is propagated from the APIpublic ConnectionAccessor getConnection()
public String getSession()
public String toString()
Object.toString()public static void main(String[] args)
args - are not supported
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright 2004-2007 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.