cgl.axis.services.uddi_wscontext_client
Class ContextPublishExample

java.lang.Object
  extended bycgl.axis.services.uddi_wscontext_client.ContextPublishExample

public class ContextPublishExample
extends java.lang.Object

Author:
Mehmet S. Aktas (maktas@indiana.edu)

Field Summary
(package private)  UDDI_WSContextSoapBindingStub binding
           
(package private)  java.util.Properties bootstrap
           
static java.lang.String CASE_SENSITIVE_MATCH
           
static java.lang.String CONTEXT_DESCRIPTION
           
static java.lang.String EXACT_NAME_MATCH
           
static java.lang.String NUMBER_VALUE_TYPE
           
static int RESULTS_MAX_ROWS_LIMIT
           
static java.lang.String TEXT_VALUE_TYPE
           
static java.lang.String USER_DEFINED_IDENTIFIER
           
 
Constructor Summary
ContextPublishExample()
           
 
Method Summary
 void addSessionChildren(AuthToken token, org.apache.axis.types.URI sessionKey, java.lang.String[] child_user_keys)
          This function is to add a child node to a session within the Session Metadata (coressponding to a AccessList in Linux file system).
 void deleteContext(AuthToken token, org.apache.axis.types.URI[] context_key_arr)
          This function is to delete Context from the WS-Context Store number of service calls: 1 => delete_context()
 ContextInfo[] find_context(AuthToken token, org.apache.axis.types.URI sessionkey, java.lang.String user_identifier, java.lang.String[] find_qualifier_arr)
          This function is to find Context in the WS-Context Store number of service calls: 1 => find_context()
 AuthToken getAuthenticationToken(java.lang.String userid, java.lang.String cred)
          This function is to get an authantication token from the WS-Context Store number of service calls: 1 => get_authToken()
 ContextDetail getContextDetail(AuthToken token, org.apache.axis.types.URI[] context_key_arr)
          This function is to get Context Detail from WS-Context Service number of service call: 1 => get_contextDetail()
 org.apache.axis.types.URI getContextKey(ContextDetail detail)
          This function is to retrieve "first" contextKey from a given context Detail object.
 java.lang.String[] getSessionChildUserKeys(AuthToken token, org.apache.axis.types.URI sessionKey)
          This function is to retrieve user defined keys for the child sessions of a given session.
 Context getSessionDirectoryMetadata(AuthToken token, org.apache.axis.types.URI sessionKey)
          This function is to get Session Metadata (coressponding to a AccessList in Linux file system) from WS-Context Service.
 org.apache.axis.types.URI getSessionKey(SessionDetail detail)
          This function is to retrieve "first" sessionKey from a given session Detail object.
static void main(java.lang.String[] args)
           
 byte[] marshallUserKeys(java.util.Vector vec)
          This function is to combine all userdefined keys in a string and it returns a byte array corresponding to that string e.g.
 void printContext(Context context)
          This function is to print context object to Console.
 void printContextDetail(ContextDetail detail)
          This function is to print context detail object to Console.
 void printSessionDetail(SessionDetail detail)
          This function is to print session detail object to Console.
 void printToken(AuthToken token)
          This function is to print AuthToken object to Console.
 void removeSessionChildren(AuthToken token, org.apache.axis.types.URI sessionKey, java.lang.String[] child_user_keys)
          This function is to remove child nodes from a session within the Session Metadata (coressponding to a AccessList in Linux file system).
 void run()
           
 SessionDetail save_Session(AuthToken token, java.lang.String user_session_identifier, java.lang.String session_description, java.lang.String[] child_node_user_key_arr)
          This function is to save session to the WS-Context Store number of service calls: 1 => save_session()
 ContextDetail saveContext(AuthToken token, java.lang.String user_identifier, org.apache.axis.types.URI session_key, byte[] context_byte_array)
          This function is to save Context to the WS-Context Store number of service calls: 1 => saveContext()
 void setServiceBinding(java.util.Properties prop)
          This function is to initilize binding object
 java.util.Vector unMarshallUserKeys(java.lang.String keyname)
          This function is to unmarshall a string to retrieve the user defined keys within a Vector e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_DEFINED_IDENTIFIER

public static final java.lang.String USER_DEFINED_IDENTIFIER
See Also:
Constant Field Values

CONTEXT_DESCRIPTION

public static final java.lang.String CONTEXT_DESCRIPTION
See Also:
Constant Field Values

EXACT_NAME_MATCH

public static final java.lang.String EXACT_NAME_MATCH
See Also:
Constant Field Values

CASE_SENSITIVE_MATCH

public static final java.lang.String CASE_SENSITIVE_MATCH
See Also:
Constant Field Values

NUMBER_VALUE_TYPE

public static final java.lang.String NUMBER_VALUE_TYPE
See Also:
Constant Field Values

TEXT_VALUE_TYPE

public static final java.lang.String TEXT_VALUE_TYPE
See Also:
Constant Field Values

RESULTS_MAX_ROWS_LIMIT

public static final int RESULTS_MAX_ROWS_LIMIT
See Also:
Constant Field Values

bootstrap

java.util.Properties bootstrap

binding

UDDI_WSContextSoapBindingStub binding
Constructor Detail

ContextPublishExample

public ContextPublishExample()
Method Detail

setServiceBinding

public void setServiceBinding(java.util.Properties prop)
This function is to initilize binding object


getAuthenticationToken

public AuthToken getAuthenticationToken(java.lang.String userid,
                                        java.lang.String cred)
This function is to get an authantication token from the WS-Context Store number of service calls: 1 => get_authToken()


save_Session

public SessionDetail save_Session(AuthToken token,
                                  java.lang.String user_session_identifier,
                                  java.lang.String session_description,
                                  java.lang.String[] child_node_user_key_arr)
This function is to save session to the WS-Context Store number of service calls: 1 => save_session()


saveContext

public ContextDetail saveContext(AuthToken token,
                                 java.lang.String user_identifier,
                                 org.apache.axis.types.URI session_key,
                                 byte[] context_byte_array)
This function is to save Context to the WS-Context Store number of service calls: 1 => saveContext()


deleteContext

public void deleteContext(AuthToken token,
                          org.apache.axis.types.URI[] context_key_arr)
This function is to delete Context from the WS-Context Store number of service calls: 1 => delete_context()


find_context

public ContextInfo[] find_context(AuthToken token,
                                  org.apache.axis.types.URI sessionkey,
                                  java.lang.String user_identifier,
                                  java.lang.String[] find_qualifier_arr)
This function is to find Context in the WS-Context Store number of service calls: 1 => find_context()


getSessionChildUserKeys

public java.lang.String[] getSessionChildUserKeys(AuthToken token,
                                                  org.apache.axis.types.URI sessionKey)
This function is to retrieve user defined keys for the child sessions of a given session. number of service calls: 2 => find_context, get_contextDetail


addSessionChildren

public void addSessionChildren(AuthToken token,
                               org.apache.axis.types.URI sessionKey,
                               java.lang.String[] child_user_keys)
This function is to add a child node to a session within the Session Metadata (coressponding to a AccessList in Linux file system). number of service calls: 3 => find_context, get_contextDetail, saveContext


removeSessionChildren

public void removeSessionChildren(AuthToken token,
                                  org.apache.axis.types.URI sessionKey,
                                  java.lang.String[] child_user_keys)
This function is to remove child nodes from a session within the Session Metadata (coressponding to a AccessList in Linux file system). number of service calls: 3 => find_context, get_contextDetail, saveContext


getSessionDirectoryMetadata

public Context getSessionDirectoryMetadata(AuthToken token,
                                           org.apache.axis.types.URI sessionKey)
This function is to get Session Metadata (coressponding to a AccessList in Linux file system) from WS-Context Service. From this context value you can simply learn the child nodes of this given session. number of service calls: find_context, get_contextDetail (2)


getContextDetail

public ContextDetail getContextDetail(AuthToken token,
                                      org.apache.axis.types.URI[] context_key_arr)
This function is to get Context Detail from WS-Context Service number of service call: 1 => get_contextDetail()


getSessionKey

public org.apache.axis.types.URI getSessionKey(SessionDetail detail)
This function is to retrieve "first" sessionKey from a given session Detail object. In most cases you might store only one session, so get only session detail in return. This is to extract session key associated to that session detail


getContextKey

public org.apache.axis.types.URI getContextKey(ContextDetail detail)
This function is to retrieve "first" contextKey from a given context Detail object. In most cases you might store only one context, so get only context detail in return. This is to extract context key associated to that context detail


marshallUserKeys

public byte[] marshallUserKeys(java.util.Vector vec)
This function is to combine all userdefined keys in a string and it returns a byte array corresponding to that string e.g. String s = "vlb://session1 vlb://session2";


unMarshallUserKeys

public java.util.Vector unMarshallUserKeys(java.lang.String keyname)
This function is to unmarshall a string to retrieve the user defined keys within a Vector e.g. {vlb://session1, vlb://session2}


printToken

public void printToken(AuthToken token)
This function is to print AuthToken object to Console.


printContext

public void printContext(Context context)
This function is to print context object to Console.


printContextDetail

public void printContextDetail(ContextDetail detail)
This function is to print context detail object to Console.


printSessionDetail

public void printSessionDetail(SessionDetail detail)
This function is to print session detail object to Console.


run

public void run()

main

public static void main(java.lang.String[] args)