wt.com
Interface WindchillComponentIfc

All Known Implementing Classes:
WindchillComponentImpl

public interface WindchillComponentIfc


Method Summary
 boolean getProperty(String key, boolean def)
          Get a property from the local windchill properties list.
 int getProperty(String key, int def)
          Get a property from the local windchill properties list.
 String getProperty(String key, String def)
          Get a property from the local windchill properties list.
 boolean getServerProperty(String key, boolean def)
          Get a property from the server's windchill properties list.
 int getServerProperty(String key, int def)
          Get a property from the server's windchill properties list.
 String getServerProperty(String key, String def)
          Get a property from the server's windchill properties list.
 String getUsername()
          Returns the username currently being used for method invocation.
 Object invoke(String targetMethod, String targetClass, Integer targetObjectHandle, Class[] argTypes, Object[] newArgs)
           
 void setPassword(String password)
          Set the password for authentication.
 void setUsername(String username)
          Sets the username for all transactions with Windchill.
 

Method Detail

invoke

public Object invoke(String targetMethod,
                     String targetClass,
                     Integer targetObjectHandle,
                     Class[] argTypes,
                     Object[] newArgs)
              throws RemoteException,
                     InvocationTargetException
Throws:
RemoteException
InvocationTargetException

setUsername

public void setUsername(String username)
Sets the username for all transactions with Windchill. The username is set into the RemoteMethodServer along with the password for authentication. It it not recommended to try to use a single instance of this component with multiple users at the same time.

Parameters:
username - The username to authenticate as.

getUsername

public String getUsername()
Returns the username currently being used for method invocation.

Returns:
The username currently being used.

setPassword

public void setPassword(String password)
Set the password for authentication. The password is set into the RemoteMethodServer instance. It is not recommended to try to use a single instance of this component with multiple users at the same time.

Parameters:
password - The password for the current user.

getProperty

public boolean getProperty(String key,
                           boolean def)
Get a property from the local windchill properties list. The type of the property returned depends on the type of the default value passed in. Supported types are:

Parameters:
key - The property key to look up.
def - The default value to return if the property is not found.
Returns:
The value stored in the property or the default value.

getProperty

public int getProperty(String key,
                       int def)
Get a property from the local windchill properties list. The type of the property returned depends on the type of the default value passed in. Supported types are:

Parameters:
key - The property key to look up.
def - The default value to return if the property is not found.
Returns:
The value stored in the property or the default value.

getProperty

public String getProperty(String key,
                          String def)
Get a property from the local windchill properties list. The type of the property returned depends on the type of the default value passed in. Supported types are:

Parameters:
key - The property key to look up.
def - The default value to return if the property is not found.
Returns:
The value stored in the property or the default value.

getServerProperty

public boolean getServerProperty(String key,
                                 boolean def)
Get a property from the server's windchill properties list. The type of the property returned depends on the type of the default value passed in. Supported types are:

Parameters:
key - The property key to look up.
def - The default value to return if the property is not found.
Returns:
The value stored in the property or the default value.

getServerProperty

public int getServerProperty(String key,
                             int def)
Get a property from the server's windchill properties list. The type of the property returned depends on the type of the default value passed in. Supported types are:

Parameters:
key - The property key to look up.
def - The default value to return if the property is not found.
Returns:
The value stored in the property or the default value.

getServerProperty

public String getServerProperty(String key,
                                String def)
Get a property from the server's windchill properties list. The type of the property returned depends on the type of the default value passed in. Supported types are:

Parameters:
key - The property key to look up.
def - The default value to return if the property is not found.
Returns:
The value stored in the property or the default value.