public class UddiHub extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
UddiHub.AuthStyle
AuthStyles for the Hub to use, default is UDDI_AUTH
|
static class |
UddiHub.CriteriaType
An enum to help make UDDI searching easier to work with
|
static class |
UddiHub.FindType
An enum to help make UDDI searching easier to work with
|
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
log
The Log4j logger.
|
static String |
LOGGER_NAME
The logger name
|
static String |
PROP_ADMIN_LOCALHOST_ONLY
"config.props.configLocalHostOnly"
|
static String |
PROP_AUTH_TYPE
"config.props.authtype"
|
static String |
PROP_AUTO_LOGOUT
"config.props.automaticLogouts.enable"
|
static String |
PROP_AUTO_LOGOUT_TIMER
"config.props.automaticLogouts.duration"
|
static String |
PROP_CONFIG_NODE
the name of the 'node' property in the config
|
static String |
PROP_PREFIX
"config.props."
|
Modifier and Type | Method and Description |
---|---|
String |
AcceptCustodyTranferToken(String tokenXML,
String keyBagXML)
Accepts a transfer token and transfers the entities.
|
String |
AddPublisherAssertion(String tokey,
String fromkey,
String tmodelkey,
String keyname,
String keyvalue)
Adds a new publisher assertion
|
String |
AddSubscription(Subscription sub)
attempts to save subscription
|
String |
AddTmodelKenGenerator(String partitionName,
String name,
String lang)
Adds a special tModel key generator keyGenerator: Marking a tModel
with this categorization designates it as one whose tModelKey
identifies a key generator partition that can be used by its owner to
derive and assign other entity keys.
|
String |
deleteBinding(String id) |
String |
deleteBusiness(List<String> bizid)
Deletes a list of UDDI businesses by key
|
String |
deleteBusiness(String bizid)
Deletes a business
|
String |
DeletePublisherAssertion(String tokey,
String fromkey,
String tmodelkey,
String keyname,
String keyvalue)
deletes a publisher assertion, all fields must match exactly
|
String |
deleteService(List<String> serviceId)
deletes a list of services
|
String |
deleteService(String serviceId)
delete a service
|
String |
deleteTmodel(List<String> bizid)
Deletes a list of UDDI tModels by key
|
String |
deleteTmodel(String bizid)
delete a tmodel
|
void |
die()
This kills any authentication tokens, logs the user out and nulls out
all services
|
String |
DiscardToken(String tokenxml) |
long |
GetAutoLogoutDuration()
defaults to 15 minutes if not defined
|
BindingTemplate |
GetBindingDetailsAsObject(String key)
Returns a specific binding template as an object
|
BusinessEntity |
GetBusinessDetails(String bizid)
Gets a business's details used for the businessEditor
|
BusinessEntity |
GetBusinessDetailsAsObject(String key)
A convenience function for GetBusinessDetails
|
PagableContainer |
GetBusinessListAsHtml(int offset,
int maxrecords,
String keyword,
String lang,
boolean isChooser)
Performs a find_business call in the inquiry API
|
String |
GetCertificate(UddiHub.FindType ft,
String id,
int index)
Retrieves the UDDI entity, then attempts to return a base64 encoded
certificate of the N'th indexed signature
|
String |
GetCustodyTransferToken(KeyBag keys,
Holder<String> nodeid,
Holder<XMLGregorianCalendar> outExpires,
Holder<byte[]> outToken)
Get a custody transfer token for giving away control of the specified
business or tmodel keys
authInfo: This OPTIONAL argument is an element that contains an
authentication token.
|
Properties |
GetDigitalSignatureConfig()
returns all of the current properties defining digital signatures
|
static UddiHub |
getInstance(javax.servlet.ServletContext application,
javax.servlet.http.HttpSession _session)
This is the singleton accessor UddiHub.
|
ClientConfig |
GetJuddiClientConfig()
gets a reference to the current juddi client config file.
|
String |
getLocale()
gets the user selected locale
|
String |
GetMyTransferableKeys(boolean businesses,
boolean tModels)
The get_registeredInfo API call is used to get an abbreviated list of
all businessEntity and tModel data that are controlled by a
publisher.
|
String |
GetNewsFeed(XMLGregorianCalendar lastRefresh)
Returns bootstrap stylized html representing all changes in the last
refresh
|
RegisteredInfo |
GetNodeInformation(AtomicReference<String> outmsg)
This function returns all businesses that the current user
owns
The get_registeredInfo API call is used to get an abbreviated list of all businessEntity and tModel data that are controlled by a publisher. |
String |
getNodeName()
gets the configuration file's node name element of the currently
connected node
|
String |
GetOperationalInfo(List<OperationalInfo> info)
GetOperationalInfo
|
List<OperationalInfo> |
GetOperationalInfo(String id)
gets the opinfo on an item
|
List<AssertionStatusItem> |
GetPublisherAssertions(AtomicReference<String> msg)
Gets a list of all assertions for all businesses owned by the current
user
The get_assertionStatusReport API call provides administrative
support for determining the status of current and outstanding
publisher assertions that involve any of the business registrations
managed by the individual publisher.
|
BusinessService |
GetServiceDetail(String serviceid)
Performs a getServiceDetails in Inquiry API
|
String |
GetServiceDetailAsHtml(String serviceid)
Performs Inquiry Find_service API used from servicedetails.jsp
|
BusinessService |
GetServiceDetailsAsObject(String key)
A convenience function for GetServiceDetail
|
String |
GetServiceList(String bizid)
returns an html formatted list of services for a specific business
used on browse.jsp
|
Subscription |
GetSubscriptionDetails(String id)
returns a subscription by id, since UDDI does not provide this
function, it simply gets all of them for the current user then
filters out the requested item
|
List<Subscription> |
GetSubscriptions()
gets all of my subscriptions
|
TModel |
getTmodelDetails(String id)
Returns the details of a tModel by tModelKey
|
TModel |
GettModelDetailsAsObject(String key)
Returns a tmodel given the key
|
String |
getTmodelDisplayName(String id) |
boolean |
getUddiIsAuthenticated()
Returns true if the current user has a token and is signed in.
|
String |
HandleException(Exception ex)
This function provides a basic error handling rutine that will pull
out the true error message in a UDDI fault message, returning
bootstrap stylized html error message
|
boolean |
isAdminLocalhostOnly()
If false, the configuration page will be available from anywhere.
|
boolean |
isAutoLogoutEnabled()
returns true if automatic logouts are configured
|
static boolean |
isExceptionExpiration(Exception ex)
return true if the word expire is in the exception or the UDDI error
code representing an expired token
|
boolean |
isSecure()
returns true if we are using JAXWS transport AND all of the URLs
start with https://
|
String |
RemoveSubscription(String key)
Removes/deletes a subscription
|
static void |
reset(javax.servlet.http.HttpSession _session)
removes the Hub from the current http session
|
String |
SaveBindingTemplate(BindingTemplate be)
this is used from the save from xml.jsp page
|
String |
SaveBindingTemplate(javax.servlet.http.HttpServletRequest request) |
String |
SaveBusinessDetails(BusinessEntity be)
Saves a business entity
|
String |
SaveBusinessDetails(javax.servlet.http.HttpServletRequest request)
Save Business
This method saves a business to a UDDI registry, preserving the
service listing The request is build from the HTTP post back
parameters.
|
String |
SaveServiceDetails(BusinessService be)
Saves a Service
|
String |
SaveServiceDetails(javax.servlet.http.HttpServletRequest request)
This method will rebuild a Service entity from the HTTP request from
the Service Editor page and will then attempt to save it.
|
String |
SaveTModel(javax.servlet.http.HttpServletRequest request)
This rebuild a tmodel from the http request, such as from the tmodel
editor page
|
String |
SaveTModel(TModel be)
saves a tmodel object
|
String |
Search(UddiHub.FindType type,
UddiHub.CriteriaType criteria,
String parameters,
String lang,
String[] findqualifier)
Provides a simple search interface for the complex UDDI search APIs
|
PagableContainer |
SearchForBinding(String keyword,
String lang,
int offset,
int maxrecords,
boolean isChooser)
Searches first for a service, then iterates through to identify
bindings matching the specified criteria.
|
PagableContainer |
SearchForServices(String keyword,
String lang,
int maxrecords,
int offset,
boolean isChooser)
Search for services using find_services
|
String |
SendAdvancedQuery(Object request,
String service,
String method) |
String |
SignatureToBase64(SignatureType sig)
converts a UDDI Signature Type element into a base64 string
containing the raw data for the signing certificate, if present
|
static String |
SignatureToReadable(SignatureType sig)
Converts a UDDI Signature to a readable representation of the signing
certificate subject name
|
String |
switchNodes(String newnode)
attempts to switch the current context to the proposed node id.
|
PagableContainer |
tModelListAsHtml(String keyword,
String lang,
int offset,
int maxrecords,
boolean isChooser)
provides based tmodel searching/browser capability that's pagable
|
static String |
ToErrorAlert(String HandleException)
returns a bootstrap html stylizies an error message with a warning
icon
|
String |
verifyLogin() |
public static final String LOGGER_NAME
public static final transient org.apache.commons.logging.Log log
public static final String PROP_CONFIG_NODE
public static final String PROP_AUTH_TYPE
public static final String PROP_AUTO_LOGOUT
public static final String PROP_AUTO_LOGOUT_TIMER
public static final String PROP_PREFIX
public static final String PROP_ADMIN_LOCALHOST_ONLY
public static void reset(javax.servlet.http.HttpSession _session)
_session
- public String verifyLogin()
public void die()
public static UddiHub getInstance(javax.servlet.ServletContext application, javax.servlet.http.HttpSession _session) throws Exception
application
- _session
- Exception
public String getLocale()
public boolean isSecure()
public ClientConfig GetJuddiClientConfig() throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
- gpublic String getNodeName()
public String switchNodes(String newnode)
newnode
- public Properties GetDigitalSignatureConfig()
public boolean getUddiIsAuthenticated()
public PagableContainer GetBusinessListAsHtml(int offset, int maxrecords, String keyword, String lang, boolean isChooser)
offset
- maxrecords
- keyword
- lang
- isChooser
- public String GetMyTransferableKeys(boolean businesses, boolean tModels)
businesses
- tModels
- public String GetServiceDetailAsHtml(String serviceid)
serviceid
- public static boolean isExceptionExpiration(Exception ex)
ex
- public String GetServiceList(String bizid)
bizid
- public BusinessService GetServiceDetail(String serviceid)
serviceid
- public String SaveBindingTemplate(BindingTemplate be)
be
- public String SaveServiceDetails(javax.servlet.http.HttpServletRequest request)
request
- public String SaveServiceDetails(BusinessService be)
be
- public String SaveBusinessDetails(BusinessEntity be)
be
- public String SaveBusinessDetails(javax.servlet.http.HttpServletRequest request)
request
- public BusinessEntity GetBusinessDetails(String bizid)
bizid
- public static String ToErrorAlert(String HandleException)
HandleException,
- any string representing an error messagepublic PagableContainer SearchForServices(String keyword, String lang, int maxrecords, int offset, boolean isChooser)
keyword
- lang
- maxrecords
- offset
- isChooser
- public String AddTmodelKenGenerator(String partitionName, String name, String lang)
partitionName
- name
- lang
- public String HandleException(Exception ex)
ex
- public PagableContainer tModelListAsHtml(String keyword, String lang, int offset, int maxrecords, boolean isChooser)
keyword
- lang
- offset
- maxrecords
- isChooser
- if true, tModel keys will not be clickable and will
instead be render for a modal dialog boxpublic TModel getTmodelDetails(String id)
id
- public BusinessEntity GetBusinessDetailsAsObject(String key)
key
- public BusinessService GetServiceDetailsAsObject(String key)
key
- public BindingTemplate GetBindingDetailsAsObject(String key)
key
- public TModel GettModelDetailsAsObject(String key)
key
- public String Search(UddiHub.FindType type, UddiHub.CriteriaType criteria, String parameters, String lang, String[] findqualifier)
type
- criteria
- parameters
- lang
- findqualifier
- public String deleteBusiness(String bizid)
bizid
- public String deleteService(String serviceId)
serviceId
- public String deleteService(List<String> serviceId)
serviceId
- public String deleteBusiness(List<String> bizid)
bizid
- public String deleteTmodel(String bizid)
bizid
- public String deleteTmodel(List<String> bizid)
bizid
- public String SaveTModel(TModel be)
be
- public String SaveTModel(javax.servlet.http.HttpServletRequest request)
request
- public static String SignatureToReadable(SignatureType sig)
sig
- public String SignatureToBase64(SignatureType sig)
sig
- public String GetCertificate(UddiHub.FindType ft, String id, int index)
ft
- The type of item requestedid
- the unique identifier of the entityindex
- the offset of the signature, starting at 0public List<Subscription> GetSubscriptions()
public String AddSubscription(Subscription sub)
sub
- public String RemoveSubscription(String key)
key
- public List<OperationalInfo> GetOperationalInfo(String id)
id
- public String GetOperationalInfo(List<OperationalInfo> info)
info
- public RegisteredInfo GetNodeInformation(AtomicReference<String> outmsg)
public List<AssertionStatusItem> GetPublisherAssertions(AtomicReference<String> msg)
msg
- public String DeletePublisherAssertion(String tokey, String fromkey, String tmodelkey, String keyname, String keyvalue)
tokey
- fromkey
- tmodelkey
- keyname
- keyvalue
- public String AddPublisherAssertion(String tokey, String fromkey, String tmodelkey, String keyname, String keyvalue)
tokey
- fromkey
- keyname
- keyvalue
- public String GetNewsFeed(XMLGregorianCalendar lastRefresh) throws DatatypeConfigurationException
lastRefresh
- DatatypeConfigurationException
public PagableContainer SearchForBinding(String keyword, String lang, int offset, int maxrecords, boolean isChooser)
keyword
- lang
- offset
- maxrecords
- isChooser
- public String GetCustodyTransferToken(KeyBag keys, Holder<String> nodeid, Holder<XMLGregorianCalendar> outExpires, Holder<byte[]> outToken)
keys
- nodeid
- outExpires
- outToken
- public String DiscardToken(String tokenxml)
tokenxml
- public String AcceptCustodyTranferToken(String tokenXML, String keyBagXML)
tokenXML
- keyBagXML
- public Subscription GetSubscriptionDetails(String id)
id
- public String SendAdvancedQuery(Object request, String service, String method)
request
- service
- method
- UDDIRequestsAsXML
public boolean isAutoLogoutEnabled()
public long GetAutoLogoutDuration()
public boolean isAdminLocalhostOnly()
public String SaveBindingTemplate(javax.servlet.http.HttpServletRequest request)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.