electric.uddi
Class Assertion

java.lang.Object
  extended byelectric.uddi.Assertion
All Implemented Interfaces:
ISerializable, IUDDIConstants

public final class Assertion
extends java.lang.Object
implements ISerializable, IUDDIConstants

Assertion represents a relationship between businesses.

Author:
webMethods

Field Summary
 
Fields inherited from interface electric.uddi.IUDDIConstants
ACCESS_POINT, ADD_PUBLISHER_ASSERTIONS, ADDRESS, ADDRESS_LINE, AND_ALL_KEYS, ASCENDING, ASSERTION_STATUS_ITEM, ASSERTION_STATUS_REPORT, ASSERTION_TYPE, AUTH_INFO, AUTH_TOKEN, AUTHORIZED_NAME, BINDING_DETAIL, BINDING_KEY, BINDING_TEMPLATE, BINDING_TEMPLATES, BINDING_TYPE, BUSINESS_DETAIL, BUSINESS_DETAIL_EXT, BUSINESS_ENTITY, BUSINESS_ENTITY_EXT, BUSINESS_INFO, BUSINESS_INFOS, BUSINESS_KEY, BUSINESS_LIST, BUSINESS_SERVICE, BUSINESS_SERVICES, BUSINESS_TYPE, CASE_SENSITIVE_MATCH, CATEGORY_BAG, CHECKED, COMBINE_CATEGORY_BAGS, COMPARE_AND_ALL_KEYS, COMPARE_OR_ALL_KEYS, COMPARE_OR_LIKE_KEYS, comparisonStrategies, COMPLETION_STATUS, CONTACT, CONTACTS, CRED, DEFAULT_SITE_OPERATOR, DELETE_BINDING, DELETE_BUSINESS, DELETE_PUBLISHER_ASSERTIONS, DELETE_SERVICE, DELETE_SUBSCRIPTION, DELETE_TMODEL, DESCENDING, DESCRIPTION, directions, DISCARD_AUTH_TOKEN, DISCOVERY_URL, DISCOVERY_URLS, DISPOSITION_REPORT, E_accountLimitExceeded, E_accountLimitExceeded_TEXT, E_assertionNotFound, E_assertionNotFound_TEXT, E_authTokenExpired, E_authTokenExpired_TEXT, E_authTokenRequired, E_authTokenRequired_TEXT, E_busy, E_busy_TEXT, E_categorizationNotAllowed, E_categorizationNotAllowed_TEXT, E_fatalError, E_fatalError_TEXT, E_invalidCategory, E_invalidCategory_TEXT, E_invalidCompletionStatus, E_invalidCompletionStatus_TEXT, E_invalidKeyPassed, E_invalidKeyPassed_TEXT, E_invalidProjection, E_invalidProjection_TEXT, E_invalidURLPassed, E_invalidURLPassed_TEXT, E_invalidValue, E_invalidValue_TEXT, E_keyRetired, E_keyRetired_TEXT, E_languageError, E_languageError_TEXT, E_messageTooLarge, E_messageTooLarge_TEXT, E_nameTooLong, E_nameTooLong_TEXT, E_operatorMismatch, E_operatorMismatch_TEXT, E_other, E_other_TEXT, E_publisherCancelled, E_publisherCancelled_TEXT, E_requestDenied, E_requestDenied_TEXT, E_secretUnknown, E_secretUnknown_TEXT, E_success, E_success_TEXT, E_tooManyOptions, E_tooManyOptions_TEXT, E_transferAborted, E_transferAborted_TEXT, E_unknownUser, E_unknownUser_TEXT, E_unrecognizedVersion, E_unrecognizedVersion_TEXT, E_unsupported, E_unsupported_TEXT, E_userMismatch, E_userMismatch_TEXT, E_valueNotAllowed, E_valueNotAllowed_TEXT, EMAIL, ENTITY_KEY, ERR_CODE, ERR_INFO, ERR_NO, EXACT_NAME_MATCH, FIND_BINDING, FIND_BUSINESS, FIND_QUALIFIER, FIND_QUALIFIERS, FIND_RELATED_BUSINESSES, FIND_SERVICE, FIND_TMODEL, FROM_KEY, FROM_USER, GENERIC, GET_ASSERTION_STATUS_REPORT, GET_AUTH_TOKEN, GET_BINDING_DETAIL, GET_BUSINESS_DETAIL, GET_BUSINESS_DETAIL_EXT, GET_OPERATIONAL_INFO, GET_PUBLISHER_ASSERTIONS, GET_REGISTERED_INFO, GET_SERVICE_DETAIL, GET_SUBSCRIPTION_RESULTS, GET_SUBSCRIPTIONS, GET_TMODEL_DETAIL, HIDDEN, HOSTING_REDIRECTOR, IDENTIFIER, IDENTIFIER_BAG, INQUIRY_METHODS, INSTANCE_DETAILS, INSTANCE_PARMS, KEY_NAME, KEY_VALUE, KEYED_REFERENCE, KEYS_OWNED, LANG, MAX_ROWS, MAX_STANDARD_SERVICES, NAME, NONE, OK, OPERATIONAL_INFOS, OPERATOR, OR_ALL_KEYS, OR_LIKE_KEYS, OVERVIEW_DOC, OVERVIEW_URL, PERSON_NAME, PHONE, PUBLISH_METHODS, PUBLISHER_ASSERTION, PUBLISHER_ASSERTIONS, REGISTERED_INFO, RELATED_BUSINESS_INFO, RELATED_BUSINESS_INFOS, RELATED_BUSINESS_LIST, RESULT, SAVE_BINDING, SAVE_BUSINESS, SAVE_SERVICE, SAVE_SUBSCRIPTION, SAVE_TMODEL, SERVICE_DETAIL, SERVICE_INFO, SERVICE_INFOS, SERVICE_KEY, SERVICE_LIST, SERVICE_SUBSET, SERVICE_TYPE, SET_PUBLISHER_ASSERTIONS, SHARED_RELATIONSHIPS, SORT_BY_DATE_ASCENDING, SORT_BY_DATE_DESCENDING, SORT_BY_NAME_ASCENDING, SORT_BY_NAME_DESCENDING, SORT_CODE, SOUNDEX_NAME_MATCH, SUBSCRIPTION_TYPE, TMODEL, TMODEL_BAG, TMODEL_DETAIL, TMODEL_INFO, TMODEL_INFOS, TMODEL_INSTANCE_DETAILS, TMODEL_INSTANCE_INFO, TMODEL_KEY, TMODEL_LIST, TMODEL_TYPE, TO_KEY, TO_USER, TRUE, TRUNCATED, UDDI, UDDI_BUS_ENTITY_NAME, UDDI_BUS_ENTITY_UUID, UDDI_BUS_REL_NAME, UDDI_BUS_REL_UUID, UDDI_DUNS_NAME, UDDI_DUNS_UUID, UDDI_FAX_NAME, UDDI_FAX_UUID, UDDI_FTP_NAME, UDDI_FTP_UUID, UDDI_GENERAL_KEYWORD_KEY, UDDI_GENERAL_KEYWORD_NAME, UDDI_HOMEPAGE_NAME, UDDI_HOMEPAGE_UUID, UDDI_HTTP_NAME, UDDI_HTTP_UUID, UDDI_INQUIRY_API_NAME, UDDI_INQUIRY_API_NAME_V2, UDDI_INQUIRY_API_UUID, UDDI_INQUIRY_API_UUID_V2, UDDI_ISO3166_NAME, UDDI_ISO3166_UUID, UDDI_MAX_NAME_LENGTH, UDDI_MAX_NAMES, UDDI_MAX_ROWS, UDDI_MISC_TAXONOMY_NAME, UDDI_MISC_TAXONOMY_UUID, UDDI_NAICS_NAME, UDDI_NAICS_UUID, UDDI_NAMESPACE_V1, UDDI_NAMESPACE_V2, UDDI_NAMESPACE_V3, UDDI_OPERATOR_MAX_ROWS, UDDI_OPERATORS_NAME, UDDI_OPERATORS_UUID, UDDI_PUBLISH_API_NAME, UDDI_PUBLISH_API_NAME_V2, UDDI_PUBLISH_API_UUID, UDDI_PUBLISH_API_UUID_V2, UDDI_SMTP_NAME, UDDI_SMTP_UUID, UDDI_SOAP_ACTION, UDDI_STATUS_COMPLETE, UDDI_STATUS_FROM_KEY_INCOMPLETE, UDDI_STATUS_TO_KEY_INCOMPLETE, UDDI_TAXONOMY_API_NAME, UDDI_TAXONOMY_API_NAME_V2, UDDI_TAXONOMY_API_UUID, UDDI_TAXONOMY_API_UUID_V2, UDDI_TELEPHONE_NAME, UDDI_TELEPHONE_UUID, UDDI_THOMAS_REGISTER_NAME, UDDI_THOMAS_REGISTER_UUID, UDDI_TYPE_TAXONOMY_NAME, UDDI_TYPE_TAXONOMY_NAME_UUID, UDDI_UNSPSC_NAME, UDDI_UNSPSC_UUID, UDDI_V1, UDDI_V2, UDDI_V3, UNCHECKED, UPLOAD_REGISTER, URL_TYPE, USE_TYPE, USER_ID, USER_NAME, USER_TYPE, XML
 
Constructor Summary
Assertion()
          Construct an Assertion with no initial values.
Assertion(Business fromBusiness, Business toBusiness, Identifier keyedReference)
           
Assertion(java.lang.String fromKey, java.lang.String toKey, Identifier keyedReference)
           
 
Method Summary
 void assertUser(IUDDIServer server, User user)
           
 boolean equals(java.lang.Object object)
          Return true if the object is an Assertion with equal values for the fromKey, toKey, and keyedReference.
 java.lang.String getAssertionKey()
          Return a unique key for the assertion.
 java.lang.String getFromKey()
          Return the from key.
 java.lang.String getFromUserName()
          Return the from user.
 Identifier getKeyedReference()
          Return the keyed reference for the relationship.
 java.lang.String getRelatedKey(java.lang.String businessKey)
          Returns the business key that represents the other side from the one passed in.
 java.lang.String getStatus()
          Returns the string description of the assertion status.
 java.lang.String getToKey()
          Return the to key.
 java.lang.String getToUserName()
          Return the to user.
 java.lang.String getUserName()
           
 boolean hasNoUsers()
          internal use only
 boolean matches(java.lang.String status, java.lang.String[] businessKeys, Identifier reference)
          Returns true if the assertion matches the provided criteria
 void read(IReader reader)
          Restore myself from the specified reader.
 void setFromKey(java.lang.String fromKey)
          Set the from key.
 void setFromUserName(java.lang.String fromUserName)
          Set the from user.
 void setKeyedReference(Identifier keyedReference)
          Set the keyed reference for the relationship.
 void setToKey(java.lang.String toKey)
          Set the to key.
 void setToUserName(java.lang.String toUserName)
          Set the to user.
 void setUserName(java.lang.String userName)
           
 java.lang.String toString()
          Return my description.
 void unassertUser(IUDDIServer server, User user)
           
 void write(IWriter writer)
          Write myself to the specified writer.
 void write(IWriter writer, boolean publish, boolean includeUserName)
          Write myself to the specified writer.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Assertion

public Assertion()
Construct an Assertion with no initial values.


Assertion

public Assertion(Business fromBusiness,
                 Business toBusiness,
                 Identifier keyedReference)
Parameters:
fromBusiness -
toBusiness -
keyedReference -

Assertion

public Assertion(java.lang.String fromKey,
                 java.lang.String toKey,
                 Identifier keyedReference)
Parameters:
fromKey -
toKey -
keyedReference -
Method Detail

toString

public java.lang.String toString()
Return my description.


equals

public boolean equals(java.lang.Object object)
Return true if the object is an Assertion with equal values for the fromKey, toKey, and keyedReference.

Parameters:
object - The object to match.

setFromKey

public void setFromKey(java.lang.String fromKey)
Set the from key.

Parameters:
fromKey - The from key.

getFromKey

public java.lang.String getFromKey()
Return the from key.


setToKey

public void setToKey(java.lang.String toKey)
Set the to key.

Parameters:
toKey - The to key.

getToKey

public java.lang.String getToKey()
Return the to key.


getRelatedKey

public java.lang.String getRelatedKey(java.lang.String businessKey)
Returns the business key that represents the other side from the one passed in. Returns null if the business key provided is not a part of the relationship.


getKeyedReference

public Identifier getKeyedReference()
Return the keyed reference for the relationship.


setKeyedReference

public void setKeyedReference(Identifier keyedReference)
Set the keyed reference for the relationship.

Parameters:
keyedReference -

getAssertionKey

public java.lang.String getAssertionKey()
Return a unique key for the assertion.


setToUserName

public void setToUserName(java.lang.String toUserName)
Set the to user.

Parameters:
toUserName - The to user.

getToUserName

public java.lang.String getToUserName()
Return the to user.


setFromUserName

public void setFromUserName(java.lang.String fromUserName)
Set the from user.

Parameters:
fromUserName - The from user.

getFromUserName

public java.lang.String getFromUserName()
Return the from user.


assertUser

public void assertUser(IUDDIServer server,
                       User user)
                throws UDDIException
Parameters:
server -
user -
Throws:
UDDIException

unassertUser

public void unassertUser(IUDDIServer server,
                         User user)
                  throws UDDIException
Parameters:
server -
user -
Throws:
UDDIException

getStatus

public java.lang.String getStatus()
Returns the string description of the assertion status.


hasNoUsers

public boolean hasNoUsers()
internal use only


matches

public boolean matches(java.lang.String status,
                       java.lang.String[] businessKeys,
                       Identifier reference)
Returns true if the assertion matches the provided criteria

Parameters:
status - The status that the assertion must have.
businessKeys - The business keys that must be present.
reference - The keyed reference that must be matched.

setUserName

public void setUserName(java.lang.String userName)
Parameters:
userName -

getUserName

public java.lang.String getUserName()

write

public void write(IWriter writer)
           throws java.io.IOException
Write myself to the specified writer.

Specified by:
write in interface ISerializable
Parameters:
writer - The IWriter
Throws:
java.io.IOException - If a serialization error occurs.

write

public void write(IWriter writer,
                  boolean publish,
                  boolean includeUserName)
           throws java.io.IOException
Write myself to the specified writer.

Parameters:
writer - The IWriter
publish - If true, write status indicators as well.
includeUserName -
Throws:
java.io.IOException - If a serialization error occurs.

read

public void read(IReader reader)
          throws java.io.IOException
Restore myself from the specified reader.

Specified by:
read in interface ISerializable
Parameters:
reader - The IReader
Throws:
java.io.IOException - If a deserialization error occurs.


copyright© 2001-2004 by webMethods All Rights Reserved.