public class Config
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
IConfigTask |
configTask
The Tasks
|
protected IConfigTaskServiceLocator |
configTaskLocator
The Locators for the task services
|
protected java.lang.String |
itsEndpoint |
protected java.lang.String |
itsImpersonateCookie |
protected boolean |
itsMaintainSession
This should be set if we want axis to maintain the session between calls to the same stub.
|
protected java.lang.String |
itsPassword |
protected java.lang.String |
itsUserName
Information about the user connecting
|
IProductInfoTask |
productInfoTask |
protected IProductInfoTaskServiceLocator |
productInfoTaskLocator |
Constructor and Description |
---|
Config(java.lang.String userName,
java.lang.String password,
java.lang.String endpoint)
Constructor
|
Modifier and Type | Method and Description |
---|---|
BaseData |
_getLeaf(java.lang.String keyID)
This method queries the config manager to make sure that the keyID exists and then creates a new
Leaf of the BaseData
|
BaseData |
acervate(BaseData bd)
This will acervate the BaseData if it is a leaf (returns new instance) otherwise
it returns the current instance.
|
void |
acervate(BaseData[] source)
This will check all the BaseData's in the array and acervate any that are leafs.
|
BaseData |
acervate(java.lang.String keyID)
This function will return an non-leaf version of the BaseData with the specified KeyID.
|
boolean |
canCreate(BaseData bd) |
boolean |
canDelete(BaseData bd) |
boolean |
canRead(BaseData bd)
These methods check the permissions on the specified BaseData instance.
|
boolean |
canWrite(BaseData bd) |
BaseData[] |
find(java.lang.Class<? extends BaseData> clazz)
Find operations for performing QBEs on the Config Manager
|
BaseData[] |
find(java.lang.Class<? extends BaseData> clazz,
java.lang.String keyName) |
BaseData |
findFirst(BaseData bd) |
BaseData |
findFirst(java.lang.Class<? extends BaseData> clazz,
java.lang.String keyName) |
BaseData |
findFirstHiddenUser(BaseData bd) |
BaseData |
findFirstHiddenUser(java.lang.String keyID) |
BaseData |
findFirstIfExists(BaseData bd) |
BaseData |
findFirstIfExists(java.lang.Class<? extends BaseData> clazz,
java.lang.String keyName) |
BaseData[] |
findHiddenUsers(BaseData bd) |
BaseData[] |
findHiddenUsers(java.lang.String keyID)
Find operations to follow the hidden back references in a class
|
boolean |
getMaintainSession() |
void |
init()
Clients call this method to initialize the SDK
|
javax.xml.rpc.Call |
prepareCall(javax.xml.rpc.Call rpcCall) |
protected void |
prepareStub(java.lang.Object o) |
protected void |
prepareTasks()
Initialize the axis stubs
|
protected java.net.URL |
proxyUrl(java.lang.String url) |
void |
setImpersonate(java.lang.String userName,
java.lang.String role,
java.lang.String group)
This method should be called before
init() . |
void |
setMaintainSession(boolean val)
This method should be called before
init() . |
protected IConfigTaskServiceLocator configTaskLocator
protected IProductInfoTaskServiceLocator productInfoTaskLocator
public IConfigTask configTask
public IProductInfoTask productInfoTask
protected java.lang.String itsUserName
protected java.lang.String itsPassword
protected java.lang.String itsEndpoint
protected java.lang.String itsImpersonateCookie
protected boolean itsMaintainSession
public Config(java.lang.String userName, java.lang.String password, java.lang.String endpoint)
public boolean getMaintainSession()
public void setMaintainSession(boolean val)
init()
. It turns on the maintaining
of session in the client stubs.
public void setImpersonate(java.lang.String userName, java.lang.String role, java.lang.String group)
init()
. It sets a cookie in the client stubs containing
the tired admin credentials to use w
public void init() throws java.lang.Exception
java.lang.Exception
protected void prepareTasks() throws javax.xml.rpc.ServiceException, java.net.MalformedURLException
javax.xml.rpc.ServiceException
java.net.MalformedURLException
protected void prepareStub(java.lang.Object o)
protected java.net.URL proxyUrl(java.lang.String url) throws java.net.MalformedURLException
java.net.MalformedURLException
public javax.xml.rpc.Call prepareCall(javax.xml.rpc.Call rpcCall) throws javax.xml.rpc.ServiceException
javax.xml.rpc.ServiceException
public BaseData acervate(java.lang.String keyID) throws java.rmi.RemoteException
Leaf
. Leaf BaseData's only have the
BaseData.getKeyID()
, BaseData.getKeyName()
, BaseData.getCode()
fields set. All other fields in the class are null. To get the values of the other
fields, the BaseData has to be acervated. This is done by calling acervate(String)
.
java.rmi.RemoteException
public BaseData acervate(BaseData bd) throws java.rmi.RemoteException
java.rmi.RemoteException
public void acervate(BaseData[] source) throws java.rmi.RemoteException
java.rmi.RemoteException
public BaseData _getLeaf(java.lang.String keyID) throws java.lang.Exception
java.lang.Exception
public BaseData[] find(java.lang.Class<? extends BaseData> clazz) throws java.lang.Exception
java.lang.Exception
public BaseData[] find(java.lang.Class<? extends BaseData> clazz, java.lang.String keyName) throws java.lang.Exception
java.lang.Exception
public BaseData findFirst(java.lang.Class<? extends BaseData> clazz, java.lang.String keyName) throws java.lang.Exception
java.lang.Exception
public BaseData findFirstIfExists(java.lang.Class<? extends BaseData> clazz, java.lang.String keyName) throws java.lang.Exception
java.lang.Exception
public BaseData findFirst(BaseData bd) throws java.lang.Exception
java.lang.Exception
public BaseData findFirstIfExists(BaseData bd) throws java.lang.Exception
java.lang.Exception
public BaseData[] findHiddenUsers(java.lang.String keyID) throws java.lang.Exception
java.lang.Exception
public BaseData[] findHiddenUsers(BaseData bd) throws java.lang.Exception
java.lang.Exception
public BaseData findFirstHiddenUser(java.lang.String keyID) throws java.lang.Exception
java.lang.Exception
public BaseData findFirstHiddenUser(BaseData bd) throws java.lang.Exception
java.lang.Exception
public boolean canRead(BaseData bd) throws java.lang.Exception
java.lang.Exception
public boolean canWrite(BaseData bd) throws java.lang.Exception
java.lang.Exception
public boolean canCreate(BaseData bd) throws java.lang.Exception
java.lang.Exception
public boolean canDelete(BaseData bd) throws java.lang.Exception
java.lang.Exception