|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.infoengine.schema.client.SchemaUtils
public class SchemaUtils
SOAP client utility class that allows non Info*Engine clients to retrieve object schema from Windchill/Info*Engine. This class requires all jars contained in the released ie.rar (Info*Engine connector) and a j2ee.jar (may be supplied by a 3rdparty j2ee vendor).
| Constructor Summary | |
|---|---|
SchemaUtils()
Create a new SchemaUtils |
|
SchemaUtils(javax.resource.cci.ConnectionFactory cxFactory)
Create a new SchemaUtils with a previously configured ConnectionFactory |
|
| Method Summary | |
|---|---|
java.security.Principal |
getAuthUser()
Get the "trusted" user |
java.lang.String |
getEndpoint()
Get the SOAP endpoint |
java.lang.String |
getGenerator()
Get the SchemaGenerator that will be used to create schema. |
java.util.Locale |
getLocale()
Get the local that is being sent with requests for schema |
java.lang.String |
getPassword()
Get the password to be used when connecting to the SOAP endpoint |
static long |
getTimeToLive()
Get the time to live for cahced object |
java.lang.String |
getUser()
Get the username to be used when connecting to the SOAP endpoint |
boolean |
isDescendedFrom(SchemaObject ancestor,
SchemaObject descendant)
Checks to see if one SchemaObject is the ancestor of another. |
SchemaObject |
querySchema(java.lang.String type)
Request the schema definition for a type. |
void |
setAuthUser(java.security.Principal p)
Set the "trusted" user |
void |
setEndpoint(java.lang.String s)
Set the SOAP endpoint. |
void |
setGenerator(java.lang.String s)
Set the SchemaGenerator that should be use to create schema. |
void |
setLocale(java.util.Locale l)
Set the locale that should be sent with requests for schema |
void |
setPassword(java.lang.String s)
Set the password to be used when connecting to the SOAP endpoint |
static void |
setTimeToLive(long ttl)
Set the time to live for cached objects |
void |
setUser(java.lang.String s)
Set the username to be used when connecting to the SOAP endpoint |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaUtils()
public SchemaUtils(javax.resource.cci.ConnectionFactory cxFactory)
cxFactory - | Method Detail |
|---|
public static void setTimeToLive(long ttl)
ttl - the new time to live value in millisecondspublic static long getTimeToLive()
public void setEndpoint(java.lang.String s)
Example: "http://host/Windchill/servlet/RPC"
s - the new endpointpublic java.lang.String getEndpoint()
public void setUser(java.lang.String s)
s - the usernamepublic java.lang.String getUser()
public void setPassword(java.lang.String s)
s - the passwordpublic java.lang.String getPassword()
public void setGenerator(java.lang.String s)
The value of this property must be the fully qualified classname of a java class that implements the com.infoengine.schema.SchemaGenerator interface.
s - the generator classname to usepublic java.lang.String getGenerator()
public void setLocale(java.util.Locale l)
l - the localepublic java.util.Locale getLocale()
public void setAuthUser(java.security.Principal p)
p - the user principalpublic java.security.Principal getAuthUser()
the - user
public SchemaObject querySchema(java.lang.String type)
throws java.lang.Exception
This method may returned previously retrieved and cached information. Objects are cached based on type and locale.
type - the type to retrieve
java.lang.Exception - in the case of an error
public boolean isDescendedFrom(SchemaObject ancestor,
SchemaObject descendant)
ancestor - the ancestor type
descendant the descendant type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||