|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the Configuration API
The basic purpose of this interface is to provide a means to retrieve,
add, modify, or remove company and partner profiles from an instance
of Interchange.
Each company is identified by a unique identifier, the company id,
which is unique within a server. A client can use the findCompanies message
to lookup the company ids. The client can then use these ids to get
information about a company (getCompanyProfiles), modify information
for a company (setCompanyProfiles), or remove a company
(removeCompany). The client can also add a new company to
the server using the same setCompanyProfiles. A company’s data is
represented in an XML document.
Each partner is identified by a unique identifier, the partner id,
which is unique within a server. A client can use the findPartners message
to lookup the partner ids. The client can then use these ids to get
information about a partner (getPartnerProfiles), modify information
for a partner (setPartnerProfiles), or remove a partner
(removePartner). The client can also add a new partner to
the server using the same setPartnerData. A partner’s data is
represented in an XML document.
Method Summary | |
org.w3c.dom.Element |
findCompanies(org.w3c.dom.Element companyQuery)
This message returns all the company ids that match the given criteria, which can then be passed to one of the other messages requiring a company id. In the event that a large number of company ids may be returned, the client or the server can specify a maximum limit. |
org.w3c.dom.Element |
findPartners(org.w3c.dom.Element partnerQuery)
This message returns all the partner ids that match the given criteria, which can then be passed to one of the other messages requiring a partner id. In the event that a large number of partner ids may be returned, the client or the server can specify a maximum limit. |
org.w3c.dom.Element |
getCompanyProfiles(org.w3c.dom.Element companyIdList,
java.lang.String formatName)
This message returns the company data for each of the specified companies in the Interchange Company Config XML format. |
org.w3c.dom.Element |
getCompanyProfiles(org.w3c.dom.Element companyIdList,
java.lang.String formatName,
java.lang.String certPassword)
This message returns the company data for each of the specified companies in the Interchange Company Config XML format. |
org.w3c.dom.Element |
getPartnerProfiles(org.w3c.dom.Element partnerIdList,
java.lang.String formatName)
This message returns the partner data for each of the specified partners in the Interchange Partner Config XML format. |
org.w3c.dom.Element |
removeCompanies(org.w3c.dom.Element companyIdList)
This message removes the given companies from the Interchange Server. |
org.w3c.dom.Element |
removePartners(org.w3c.dom.Element partnerIdList)
This message removes the given partners from the Interchange Server. |
org.w3c.dom.Element |
setCompanyProfiles(org.w3c.dom.Element companyData)
This message allows the client to add new companies or modify the data of existing companies. |
org.w3c.dom.Element |
setCompanyProfiles(org.w3c.dom.Element companyData,
java.lang.String certPassword)
This message allows the client to add new companies or modify the data of existing companies. |
org.w3c.dom.Element |
setPartnerProfiles(org.w3c.dom.Element partnerData)
This message allows the client to add new partners or modify the data of existing partners. |
Method Detail |
public org.w3c.dom.Element findCompanies(org.w3c.dom.Element companyQuery) throws com.cyclonecommerce.idk.authentication.AuthenticationException, com.cyclonecommerce.idk.api.InvalidQueryException, com.cyclonecommerce.idk.api.ServerException
companyQuery
- The query used for the search. The XML is an CompanyQuery
element as defined in InterchangeConfigAPI.xsd.com.cyclonecommerce.idk.authentication.AuthenticationException
- The client has not been authorized to make this call or the
session has timed out.com.cyclonecommerce.idk.api.InvalidQueryException
- The query does not conform to the proper XML format, contains an
invalid Cursor, or contains query elements that are invalid.com.cyclonecommerce.idk.api.ServerException
- Some unexpected error occurred on the server.public org.w3c.dom.Element getCompanyProfiles(org.w3c.dom.Element companyIdList, java.lang.String formatName) throws com.cyclonecommerce.idk.authentication.AuthenticationException, com.cyclonecommerce.idk.api.InvalidFormatException, com.cyclonecommerce.idk.api.ServerException
companyIdList
- Specifies the company identifiers whose data should be returned.formatName
- Speficies the format the requested companies' data should be returned in.
If the parameter is not included, the server uses its native format.
The server may place restrictions on which formats a particular client
has access to.com.cyclonecommerce.idk.authentication.AuthenticationException
- The client has not been authorized to make this call or the
session has timed out.com.cyclonecommerce.idk.api.InvalidFormatException
- The given formatName is unknown or the client does not have access
to it.com.cyclonecommerce.idk.api.ServerException
- Some unexpected error occurred on the server.public org.w3c.dom.Element getCompanyProfiles(org.w3c.dom.Element companyIdList, java.lang.String formatName, java.lang.String certPassword) throws com.cyclonecommerce.idk.authentication.AuthenticationException, com.cyclonecommerce.idk.api.InvalidFormatException, com.cyclonecommerce.idk.api.ServerException
companyIdList
- Specifies the company identifiers whose data should be returned.formatName
- Specifies the format the requested companies' data should be returned in.
If the parameter is not included, the server uses its native format.
The server may place restrictions on which formats a particular client
has access to.certPassword
- Specifies the password used to encrypt the PKCS#12 certificates
associated with the company profiles.com.cyclonecommerce.idk.authentication.AuthenticationException
- The client has not been authorized to make this call or the
session has timed out.com.cyclonecommerce.idk.api.InvalidFormatException
- The given formatName is unknown or the client does not have access
to it.com.cyclonecommerce.idk.api.ServerException
- Some unexpected error occurred on the server.public org.w3c.dom.Element setCompanyProfiles(org.w3c.dom.Element companyData) throws com.cyclonecommerce.idk.authentication.AuthenticationException, com.cyclonecommerce.idk.api.InvalidFormatException, com.cyclonecommerce.idk.api.ServerException
companyData
- Specifies everything about the companies to be added and
modified. The companyData must be formatted in the Interchange
Company Config XML format.com.cyclonecommerce.idk.authentication.AuthenticationException
- The client has not been authorized to make this call or the
session has timed out.com.cyclonecommerce.idk.api.InvalidFormatException
- The given companies XML format is unknown to the server.com.cyclonecommerce.idk.api.ServerException
- Some unexpected error occurred on the server.public org.w3c.dom.Element setCompanyProfiles(org.w3c.dom.Element companyData, java.lang.String certPassword) throws com.cyclonecommerce.idk.authentication.AuthenticationException, com.cyclonecommerce.idk.api.InvalidFormatException, com.cyclonecommerce.idk.api.ServerException
companyData
- Specifies everything about the companies to be added and
modified. The companyData must be formatted in the Interchange
Company Config XML format.certPassword
- Specifies the PKCS#12 certificate password used to encrypt the
certificates associtated with the company profiles.com.cyclonecommerce.idk.authentication.AuthenticationException
- The client has not been authorized to make this call or the
session has timed out.com.cyclonecommerce.idk.api.InvalidFormatException
- The given companies XML format is unknown to the server.com.cyclonecommerce.idk.api.ServerException
- Some unexpected error occurred on the server.public org.w3c.dom.Element removeCompanies(org.w3c.dom.Element companyIdList) throws com.cyclonecommerce.idk.authentication.AuthenticationException, com.cyclonecommerce.idk.api.InvalidFormatException, com.cyclonecommerce.idk.api.ServerException
companyIdList
- Specifies companies that should be removed from the server.com.cyclonecommerce.idk.authentication.AuthenticationException
- The client has not been authorized to make this call or the
session has timed out.com.cyclonecommerce.idk.api.ServerException
- Some unexpected error occurred on the server.public org.w3c.dom.Element findPartners(org.w3c.dom.Element partnerQuery) throws com.cyclonecommerce.idk.authentication.AuthenticationException, com.cyclonecommerce.idk.api.InvalidQueryException, com.cyclonecommerce.idk.api.ServerException
partnerQuery
- The query used for the search. The XML is an PartnerQuery
element as defined in the InterchangePartnerConfig.xsd.com.cyclonecommerce.idk.authentication.AuthenticationException
- The client has not been authorized to make this call or the
session has timed out.com.cyclonecommerce.idk.api.InvalidQueryException
- The query does not conform to the proper XML format, contains an
invalid Cursor, or contains query elements that are invalid.com.cyclonecommerce.idk.api.ServerException
- Some unexpected error occurred on the server.public org.w3c.dom.Element getPartnerProfiles(org.w3c.dom.Element partnerIdList, java.lang.String formatName) throws com.cyclonecommerce.idk.authentication.AuthenticationException, com.cyclonecommerce.idk.api.InvalidFormatException, com.cyclonecommerce.idk.api.ServerException
partnerIdList
- Specifies the partner identifiers whose data should be returned.formatName
- Speficies the format the requested partners' data should be returned in.
If the parameter is not included, the server uses its native format.
The server may place restrictions on which formats a particular client
has access to.com.cyclonecommerce.idk.authentication.AuthenticationException
- The client has not been authorized to make this call or the
session has timed out.com.cyclonecommerce.idk.api.InvalidFormatException
- The given formatName is unknown or the client does not have access
to it.com.cyclonecommerce.idk.api.ServerException
- Some unexpected error occurred on the server.public org.w3c.dom.Element setPartnerProfiles(org.w3c.dom.Element partnerData) throws com.cyclonecommerce.idk.authentication.AuthenticationException, com.cyclonecommerce.idk.api.InvalidFormatException, com.cyclonecommerce.idk.api.ServerException
partnerData
- Specifies everything about the partner to be added and
modified. The partnerData must be formatted in the Interchange
Partner Config XML format.com.cyclonecommerce.idk.authentication.AuthenticationException
- The client has not been authorized to make this call or the
session has timed out.com.cyclonecommerce.idk.api.InvalidFormatException
- The given partners XML format is unknown to the server.com.cyclonecommerce.idk.api.ServerException
- Some unexpected error occurred on the server.public org.w3c.dom.Element removePartners(org.w3c.dom.Element partnerIdList) throws com.cyclonecommerce.idk.authentication.AuthenticationException, com.cyclonecommerce.idk.api.InvalidFormatException, com.cyclonecommerce.idk.api.ServerException
partnerIdList
- Specifies partners that should be removed from the server.com.cyclonecommerce.idk.authentication.AuthenticationException
- The client has not been authorized to make this call or the
session has timed out.com.cyclonecommerce.idk.api.ServerException
- Some unexpected error occurred on the server.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |