|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.com.WindchillComponentImpl
Field Summary | |
private static WTProperties |
localProperties
|
private Hashtable |
objectCache
|
private String |
password
|
private RemoteMethodServer |
rms
|
private static WTProperties |
serverProperties
|
private String |
username
|
private static boolean |
VERBOSE
|
Constructor Summary | |
WindchillComponentImpl()
|
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)
This method wraps RemoteMethodServer.invoke for Win32 applications to access transparently. |
void |
setPassword(String password)
Set the password for authentication. |
void |
setUsername(String username)
Sets the username for all transactions with Windchill. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static WTProperties localProperties
private static WTProperties serverProperties
private static boolean VERBOSE
private String username
private String password
private RemoteMethodServer rms
private Hashtable objectCache
Constructor Detail |
public WindchillComponentImpl()
Method Detail |
public Object invoke(String targetMethod, String targetClass, Integer targetObjectHandle, Class[] argTypes, Object[] newArgs) throws RemoteException, InvocationTargetException
The handle is passed back as an int (VT_I4) in a Variant. Passing 0 (zero) in for the handle will ignore the object store.
invoke
in interface WindchillComponentIfc
targetMethod
- The method to invoke.targetClass
- The class that contains the method.targetObjectHandle
- A handle to an object instance to invoke the method from, or 0 (zero).
RemoteException
InvocationTargetException
public void setUsername(String username)
setUsername
in interface WindchillComponentIfc
username
- The username to authenticate as.public String getUsername()
getUsername
in interface WindchillComponentIfc
public void setPassword(String password)
setPassword
in interface WindchillComponentIfc
password
- The password for the current user.public boolean getProperty(String key, boolean def)
getProperty
in interface WindchillComponentIfc
key
- The property key to look up.def
- The default value to return if the property is not found.
public int getProperty(String key, int def)
getProperty
in interface WindchillComponentIfc
key
- The property key to look up.def
- The default value to return if the property is not found.
public String getProperty(String key, String def)
getProperty
in interface WindchillComponentIfc
key
- The property key to look up.def
- The default value to return if the property is not found.
public boolean getServerProperty(String key, boolean def)
getServerProperty
in interface WindchillComponentIfc
key
- The property key to look up.def
- The default value to return if the property is not found.
public int getServerProperty(String key, int def)
getServerProperty
in interface WindchillComponentIfc
key
- The property key to look up.def
- The default value to return if the property is not found.
public String getServerProperty(String key, String def)
getServerProperty
in interface WindchillComponentIfc
key
- The property key to look up.def
- The default value to return if the property is not found.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |