com.centrasite.jaxr
Interface CentraSiteQueryManager

All Superinterfaces:
javax.xml.registry.BusinessQueryManager, javax.xml.registry.QueryManager

public interface CentraSiteQueryManager
extends javax.xml.registry.BusinessQueryManager

Defines CentraSite extensions of the JAXR BusinessQueryManager interface.


Field Summary
static java.util.Collection<java.lang.String> ANY_NAME_PATTERN
          Convenience collection of pattern "%".
static java.util.Collection<java.lang.String> EXACT_NAME_NO_SORT_QUALIFIER
          Convenience collection of FindQualifier.EXACT_NAME with no sorting.
static java.util.Collection<java.lang.String> EXACT_NAME_QUALIFIER
          Convenience collection of FindQualifier.EXACT_NAME.
static java.util.Collection<java.lang.String> NO_SORT_QUALIFIER
          Convenience collection of no sort qualifiers.
 
Method Summary
 CentraSiteBusinessQuery createCentraSiteBusinessQuery(java.util.Collection objectTypes, java.util.Collection findQualifiers)
          CentraSiteBusinessQuery factory method.
 CentraSiteBusinessQuery createCentraSiteBusinessQuery(java.lang.String objectType, java.util.Collection findQualifiers)
          CentraSiteBusinessQuery factory method.
 javax.xml.registry.BulkResponse findClassifyingConcepts(java.util.Collection findQualifiers, java.util.Collection objectTypes, java.lang.String parentKey)
          Gets the concepts that are immediate children of the given parent (which can be a taxonomy or a concept), and that are used in at least one classification in the given set of object types.
 javax.xml.registry.BulkResponse findObjects(java.util.Collection findQualifiers, java.util.Collection namePatterns, java.util.Collection classifications)
          Deprecated. for performance reasons
 javax.xml.registry.BulkResponse findObjects(java.util.Collection findQualifiers, java.util.Collection objectTypes, java.util.Collection namePatterns, java.util.Collection descriptionPatterns, java.util.Collection classifications, java.util.Collection externalIdentifiers, java.util.Collection externalLinks)
          Finds all registry objects that match the given criteria.
 javax.xml.registry.BulkResponse findObjects(java.util.Collection findQualifiers, java.util.Collection objectTypes, java.lang.String queryPrologExtension, java.lang.String queryPredicate)
          Finds all registry objects of a given type that match a predicate specified in XQuery syntax.
 javax.xml.registry.BulkResponse findObjects(java.util.Collection findQualifiers, java.lang.String objectType, java.util.Collection namePatterns, java.util.Collection descriptionPatterns, java.util.Collection classifications, java.util.Collection externalIdentifiers, java.util.Collection externalLinks)
          Finds all registry objects that match the given criteria.
 javax.xml.registry.BulkResponse findObjects(java.util.Collection findQualifiers, java.lang.String objectType, java.lang.String queryPrologExtension, java.lang.String queryPredicate)
          Finds all registry objects of a given type that match a predicate specified in XQuery syntax.
 javax.xml.registry.BulkResponse findObjectsByAssociation(java.util.Collection<java.lang.String> findQualifiers, java.lang.String objectType, java.util.Collection<java.lang.String> targetObjectIds, java.util.Collection<javax.xml.registry.infomodel.Concept> associationTypes)
          Finds all objects of the given type that have associations whose target object matches one of the given target ids and whose association type is in the given collection of types.
 javax.xml.registry.BulkResponse findObjectsByAssociation(java.util.Collection findQualifiers, java.lang.String objectType, java.lang.String targetObjectId, java.util.Collection associationTypes)
          Finds all objects of the given type that have associations whose target object matches the given target id and whose association type is in the given collection of types.
 javax.xml.registry.BulkResponse findServicesByClassificationFilename(java.util.Collection<java.lang.String> findQualifiers, javax.xml.registry.infomodel.ClassificationScheme taxonomy, java.lang.String classificationValue, java.lang.String uriSuffix)
          Find services that have an external classification with the given taxonomy and classification value and that have an ExternalLink that ends with the given uri suffix.
 javax.xml.registry.BulkResponse findUserAssets(java.util.Collection findQualifiers, javax.xml.registry.infomodel.User user)
          Gets the top-level assets owned by the given user.
 javax.xml.registry.BulkResponse findUsers(java.util.Collection findQualifiers, java.util.Collection namePatterns)
          Find users by name.
 javax.xml.registry.BulkResponse findUsers(javax.xml.registry.infomodel.Key orgKey)
          Find an organization's users by organization key.
 java.util.Collection<CentraSiteBaseTypeDescription> getAllBaseTypeDescriptions()
          Get all type base descriptions.
 java.util.Collection<CentraSiteTypeDescription> getAllTypeDescriptions()
          Get all type descriptions.
 java.util.Collection<CentraSiteVirtualTypeDescription> getAllVirtualTypeDescriptions()
          Get all virtual type descriptions.
 java.lang.String getQualifiedUserid(java.lang.String userName)
          Transform the given user name to a qualified userid.
 javax.xml.registry.BulkResponse getRegistryObjects(javax.xml.registry.infomodel.User user)
          Gets the RegistryObjects owned by the given user.
 java.util.Collection getSlotDescriptions(java.lang.String typeName)
          Return an ordered list of slot descriptions as defined in the schema for a given type
 java.util.Collection getSlotNames(java.lang.String typeName)
          Return an ordered list of slot names as defined in the schema for a given type
 CentraSiteTypeDescription getTypeDescription(java.lang.String typeName)
          Return the CentraSiteTypeDescription object for a given type
 java.lang.String getTypeName(java.lang.String xsdFileName)
          Get the type name in the form "{uri}local-name" based on the given XSD file name.
 InstanceLevelPrivilege getWebdavCurrentUserPrivilege(java.lang.String relativeUrl)
          Get the Privilege of the current user for the given WebDAV resource.
 InstanceLevelPermissionSet getWebdavPermissions(java.lang.String relativeUrl)
          Return the instance level permissions for the given WebDAV resource.
 
Methods inherited from interface javax.xml.registry.BusinessQueryManager
findAssociations, findCallerAssociations, findClassificationSchemeByName, findClassificationSchemes, findConceptByPath, findConcepts, findOrganizations, findRegistryPackages, findServiceBindings, findServices
 
Methods inherited from interface javax.xml.registry.QueryManager
getRegistryObject, getRegistryObject, getRegistryObjects, getRegistryObjects, getRegistryObjects, getRegistryObjects, getRegistryService
 

Field Detail

EXACT_NAME_QUALIFIER

static final java.util.Collection<java.lang.String> EXACT_NAME_QUALIFIER
Convenience collection of FindQualifier.EXACT_NAME.


EXACT_NAME_NO_SORT_QUALIFIER

static final java.util.Collection<java.lang.String> EXACT_NAME_NO_SORT_QUALIFIER
Convenience collection of FindQualifier.EXACT_NAME with no sorting.


NO_SORT_QUALIFIER

static final java.util.Collection<java.lang.String> NO_SORT_QUALIFIER
Convenience collection of no sort qualifiers.


ANY_NAME_PATTERN

static final java.util.Collection<java.lang.String> ANY_NAME_PATTERN
Convenience collection of pattern "%".

Method Detail

findObjects

javax.xml.registry.BulkResponse findObjects(java.util.Collection findQualifiers,
                                            java.util.Collection namePatterns,
                                            java.util.Collection classifications)
                                            throws javax.xml.registry.JAXRException
Deprecated. for performance reasons

Finds all registry objects that match the given criteria. This is a logical AND operation between all non-null parameters. If no parameters are specified, no objects are returned.

Parameters:
findQualifiers - a Collection of find qualifiers as defined by the FindQualifier interface, which specifies qualifiers that affect string matching, sorting, boolean predicate logic, and the like.
namePatterns - a Collection that may consist of either String or LocalizedString objects. Each String or value within a LocalizedString is a partial or full name pattern with wildcard searching as specified by the SQL-92 LIKE specification. Unless otherwise specified in findQualifiers, this is a logical OR, and a match on any name qualifies as a match for this criterion.
classifications - a Collection of Classification objects that classify the object. It is analogous to a catgegoryBag in the UDDI specification. Unless otherwise specified in findQualifiers, this is a logical AND, and a match on all specified Classifications qualifies as a match for this criterion. The programmer may use the LifeCycleManager.createClassification method to create a transient Classification for use in this Collection
Returns:
a BulkResponse containing a Collection of registry objects.
Throws:
javax.xml.registry.JAXRException

findObjects

javax.xml.registry.BulkResponse findObjects(java.util.Collection findQualifiers,
                                            java.lang.String objectType,
                                            java.util.Collection namePatterns,
                                            java.util.Collection descriptionPatterns,
                                            java.util.Collection classifications,
                                            java.util.Collection externalIdentifiers,
                                            java.util.Collection externalLinks)
                                            throws javax.xml.registry.JAXRException
Finds all registry objects that match the given criteria. This is a logical AND operation between all non-null parameters. If no parameters are specified, no objects are returned.

Parameters:
findQualifiers - a Collection of find qualifiers as defined by the FindQualifier interface, which specifies qualifiers that affect string matching, sorting, boolean predicate logic, and the like.
objectType - object type of the requested objects, usually specified as a LifeCycleManager constant. A user defined object type can be specified in the syntax given by javax.xml.namespace.QName.toString(). For searching across all object types, "*" can be specified. Must not be null.
For convenience, the names of predefined types are available as constants of the form OBJECT_TYPE_NAME_xxx in Constants.
namePatterns - a Collection that may consist of either String or LocalizedString objects. Each String or value within a LocalizedString is a partial or full name pattern with wildcard searching as specified by the SQL-92 LIKE specification. Unless otherwise specified in findQualifiers, this is a logical OR, and a match on any name qualifies as a match for this criterion.
descriptionPatterns - a Collection that may consist of either String or LocalizedString objects. Each String or value within a LocalizedString is a partial or full name pattern with wildcard searching as specified by the SQL-92 LIKE specification. Unless otherwise specified in findQualifiers, this is a logical OR, and a match on any name qualifies as a match for this criterion.
classifications - a Collection of Classification objects that classify the object. It is analogous to a catgegoryBag in the UDDI specification. Unless otherwise specified in findQualifiers, this is a logical AND, and a match on all specified Classifications qualifies as a match for this criterion. The programmer may use the LifeCycleManager.createClassification method to create a transient Classification for use in this Collection
externalIdentifiers - a Collection of ExternalIdentifier objects that provide an external identifier for the object using an identification scheme such as DUNS. It is analogous to an identifierBag in the UDDI specification. Unless otherwise specified in findQualifiers, this is a logical AND, and a match on all specified ExternalIdentifiers qualifies as a match for this criterion. The programmer may use the LifeCycleManager.createExternalIdentifier method to create a transient ExternalIdentifier for use in this Collection.
externalLinks - a Collection of ExternalLink objects that link the object to content outside the registry. It is analogous to an overviewDoc in the UDDI specification. Unless otherwise specified in findQualifiers, this is a logical AND, and a match on all specified ExternalLinks qualifies as a match for this criterion.
Returns:
a BulkResponse containing a Collection of registry objects.
Throws:
javax.xml.registry.JAXRException

findObjects

javax.xml.registry.BulkResponse findObjects(java.util.Collection findQualifiers,
                                            java.util.Collection objectTypes,
                                            java.util.Collection namePatterns,
                                            java.util.Collection descriptionPatterns,
                                            java.util.Collection classifications,
                                            java.util.Collection externalIdentifiers,
                                            java.util.Collection externalLinks)
                                            throws javax.xml.registry.JAXRException
Finds all registry objects that match the given criteria. This is a logical AND operation between all non-null parameters. If no parameters are specified, no objects are returned.

Parameters:
findQualifiers - a Collection of find qualifiers as defined by the FindQualifier interface, which specifies qualifiers that affect string matching, sorting, boolean predicate logic, and the like.
objectTypes - a Collection of strings that restrict the object types of the requested objects, usually specified as LifeCycleManager constants. User defined object types can be specified in the syntax given by javax.xml.namespace.QName.toString(). For searching across all object types, "*" can be specified. If null, or an empty collection, the result will be empty.
For convenience, the names of predefined types are available as constants of the form OBJECT_TYPE_NAME_xxx in Constants.
namePatterns - a Collection that may consist of either String or LocalizedString objects. Each String or value within a LocalizedString is a partial or full name pattern with wildcard searching as specified by the SQL-92 LIKE specification. Unless otherwise specified in findQualifiers, this is a logical OR, and a match on any name qualifies as a match for this criterion.
descriptionPatterns - a Collection that may consist of either String or LocalizedString objects. Each String or value within a LocalizedString is a partial or full name pattern with wildcard searching as specified by the SQL-92 LIKE specification. Unless otherwise specified in findQualifiers, this is a logical OR, and a match on any name qualifies as a match for this criterion.
classifications - a Collection of Classification objects that classify the object. It is analogous to a catgegoryBag in the UDDI specification. Unless otherwise specified in findQualifiers, this is a logical AND, and a match on all specified Classifications qualifies as a match for this criterion. The programmer may use the LifeCycleManager.createClassification method to create a transient Classification for use in this Collection
externalIdentifiers - a Collection of ExternalIdentifier objects that provide an external identifier for the object using an identification scheme such as DUNS. It is analogous to an identifierBag in the UDDI specification. Unless otherwise specified in findQualifiers, this is a logical AND, and a match on all specified ExternalIdentifiers qualifies as a match for this criterion. The programmer may use the LifeCycleManager.createExternalIdentifier method to create a transient ExternalIdentifier for use in this Collection.
externalLinks - a Collection of ExternalLink objects that link the object to content outside the registry. It is analogous to an overviewDoc in the UDDI specification. Unless otherwise specified in findQualifiers, this is a logical AND, and a match on all specified ExternalLinks qualifies as a match for this criterion.
Returns:
a BulkResponse containing a Collection of registry objects.
Throws:
javax.xml.registry.JAXRException

findObjects

javax.xml.registry.BulkResponse findObjects(java.util.Collection findQualifiers,
                                            java.lang.String objectType,
                                            java.lang.String queryPrologExtension,
                                            java.lang.String queryPredicate)
                                            throws javax.xml.registry.JAXRException
Finds all registry objects of a given type that match a predicate specified in XQuery syntax. The framework for the predicate is an XQuery like the following
 declare namespace cs="http://namespaces.CentraSite.com/Schema/jaxr";
 declare namespace dt={-- object type namespace --};
 {-- queryPrologExtension goes here --}
 for $ro in collection("CentraSite")/{-- object type --}
 where {-- queryPredicate goes here --}
 return $ro/cs:key
 

Parameters:
findQualifiers - a Collection of find qualifiers as defined by the FindQualifier interface, which specifies qualifiers that affect string matching, sorting, boolean predicate logic, and the like.
objectType - object type of the requested objects, usually specified as a LifeCycleManager constant. A user defined object type can be specified in the syntax given by javax.xml.namespace.QName.toString(). For searching across all object types, "*" can be specified. Must not be null.
For convenience, the names of predefined types are available as constants of the form OBJECT_TYPE_NAME_xxx in Constants.
queryPrologExtension - a String containing any extra XQuery prolog entries. This entry can contain arbitrary prolog entries, e.g. namespace declarations, query functions etc., as needed by the queryPredicate. Can be null if no extra prolog entries are required.
queryPredicate - the predicate qualifying the object in XQuery syntax. The context for this predicate will be a WHERE clause in an XQuery FLWR expression enumerating registry objects corresponding to the objectType parameter. Variable $ro contains a registry object in question. Namespace prefix cs is defined for the CentraSite JAXR namespace; namespece prefix dt may be defined for the namespace of a user defined object type. This parameter Can be null if asking for all registry objects of a given type.
Returns:
a BulkResponse containing a Collection of registry objects.
Throws:
javax.xml.registry.JAXRException

findObjects

javax.xml.registry.BulkResponse findObjects(java.util.Collection findQualifiers,
                                            java.util.Collection objectTypes,
                                            java.lang.String queryPrologExtension,
                                            java.lang.String queryPredicate)
                                            throws javax.xml.registry.JAXRException
Finds all registry objects of a given type that match a predicate specified in XQuery syntax. The framework for the predicate is an XQuery like the following
 declare namespace cs="http://namespaces.CentraSite.com/Schema/jaxr";
 declare namespace dt={-- object type namespace --};
 {-- queryPrologExtension goes here --}
 for $ro in collection("CentraSite")/{-- object type --}
 where {-- queryPredicate goes here --}
 return $ro/cs:key
 

Parameters:
findQualifiers - a Collection of find qualifiers as defined by the FindQualifier interface, which specifies qualifiers that affect string matching, sorting, boolean predicate logic, and the like.
objectTypes - a Collection of strings that restrict the object types of the requested objects, usually specified as LifeCycleManager constants. User defined object types can be specified in the syntax given by javax.xml.namespace.QName.toString(). For searching across all object types, "*" can be specified. If null, or an empty collection, the result will be empty.
For convenience, the names of predefined types are available as constants of the form OBJECT_TYPE_NAME_xxx in Constants.
queryPrologExtension - a String containing any extra XQuery prolog entries. This entry can contain arbitrary prolog entries, e.g. namespace declarations, query functions etc., as needed by the queryPredicate. Can be null if no extra prolog entries are required.
queryPredicate - the predicate qualifying the object in XQuery syntax. The context for this predicate will be a WHERE clause in an XQuery FLWR expression enumerating registry objects corresponding to the objectType parameter. Variable $ro contains a registry object in question. Namespace prefix cs is defined for the CentraSite JAXR namespace; namespece prefix dt may be defined for the namespace of a user defined object type. This parameter Can be null if asking for all registry objects of a given type.
Returns:
a BulkResponse containing a Collection of registry objects.
Throws:
javax.xml.registry.JAXRException

findObjectsByAssociation

javax.xml.registry.BulkResponse findObjectsByAssociation(java.util.Collection findQualifiers,
                                                         java.lang.String objectType,
                                                         java.lang.String targetObjectId,
                                                         java.util.Collection associationTypes)
                                                         throws javax.xml.registry.JAXRException
Finds all objects of the given type that have associations whose target object matches the given target id and whose association type is in the given collection of types. This is a logical AND operation between all non-null parameters. If no parameters are specified, no objects are returned.

Parameters:
findQualifiers - a Collection of find qualifiers as defined by the FindQualifier interface, which specifies qualifiers that affect string matching, sorting, boolean predicate logic, and the like.
objectType - object type of the requested objects, usually specified as a LifeCycleManager constant. A user defined object type can be specified in the syntax given by javax.xml.namespace.QName.toString(). For searching across all object types, "*" can be specified. Must not be null.
For convenience, the names of predefined types are available as constants of the form OBJECT_TYPE_NAME_xxx in Constants.
targetObjectId - a String that represents the id for a RegistryObject that must be the targetObject of the Associations that match. This parameter is ignored if specified as null.
associationTypes - a Collection of associationTypes. This is a logical OR operation across the collection. This parameter is ignored if specified as null.
Throws:
javax.xml.registry.JAXRException

findObjectsByAssociation

javax.xml.registry.BulkResponse findObjectsByAssociation(java.util.Collection<java.lang.String> findQualifiers,
                                                         java.lang.String objectType,
                                                         java.util.Collection<java.lang.String> targetObjectIds,
                                                         java.util.Collection<javax.xml.registry.infomodel.Concept> associationTypes)
                                                         throws javax.xml.registry.JAXRException
Finds all objects of the given type that have associations whose target object matches one of the given target ids and whose association type is in the given collection of types. This is a logical AND operation between all non-null parameters. If no parameters are specified, no objects are returned.

Parameters:
findQualifiers - a Collection of find qualifiers as defined by the FindQualifier interface, which specifies qualifiers that affect string matching, sorting, boolean predicate logic, and the like.
objectType - object type of the requested objects, usually specified as a LifeCycleManager constant. A user defined object type can be specified in the syntax given by javax.xml.namespace.QName.toString(). For searching across all object types, "*" can be specified. Must not be null.
For convenience, the names of predefined types are available as constants of the form OBJECT_TYPE_NAME_xxx in Constants.
targetObjectIds - a collection of String that represents the ids of RegistryObjects that must be the targetObject of the Associations that match. This parameter is ignored if specified as null.
associationTypes - a Collection of associationTypes. This is a logical OR operation across the collection. This parameter is ignored if specified as null.
Throws:
javax.xml.registry.JAXRException

findUsers

javax.xml.registry.BulkResponse findUsers(javax.xml.registry.infomodel.Key orgKey)
                                          throws javax.xml.registry.JAXRException
Find an organization's users by organization key.

Parameters:
orgKey - the organizations key
Returns:
the collection of users wrapped in a BulkResponse. The users are sorted by name and date.
Throws:
javax.xml.registry.JAXRException

findUsers

javax.xml.registry.BulkResponse findUsers(java.util.Collection findQualifiers,
                                          java.util.Collection namePatterns)
                                          throws javax.xml.registry.JAXRException
Find users by name. This searches on the RegistryObject name, not on the user's PersonName.

Parameters:
findQualifiers -
namePatterns -
Returns:
the collection of users wrapped in a BulkResponse
Throws:
javax.xml.registry.JAXRException

getSlotNames

java.util.Collection getSlotNames(java.lang.String typeName)
                                  throws javax.xml.registry.JAXRException
Return an ordered list of slot names as defined in the schema for a given type

Parameters:
typeName - the type name as {uri}local-name
Returns:
the collection of slot names. The collection may be empty but not null.
Throws:
javax.xml.registry.JAXRException

getSlotDescriptions

java.util.Collection getSlotDescriptions(java.lang.String typeName)
                                         throws javax.xml.registry.JAXRException
Return an ordered list of slot descriptions as defined in the schema for a given type

Parameters:
typeName - the type name as {uri}local-name
Returns:
the collection of CentraSiteSlotDescription objects. The collection may be empty but not null.
Throws:
javax.xml.registry.JAXRException
See Also:
CentraSiteSlotDescription

getTypeDescription

CentraSiteTypeDescription getTypeDescription(java.lang.String typeName)
                                             throws javax.xml.registry.JAXRException
Return the CentraSiteTypeDescription object for a given type

Parameters:
typeName - the type name as {uri}local-name
Returns:
the CentraSiteTypeDescription. Returns null if the type does not exist.
Throws:
javax.xml.registry.JAXRException

getAllTypeDescriptions

java.util.Collection<CentraSiteTypeDescription> getAllTypeDescriptions()
                                                                       throws javax.xml.registry.JAXRException
Get all type descriptions.

Returns:
the collection of type descriptions
Throws:
javax.xml.registry.JAXRException

getAllBaseTypeDescriptions

java.util.Collection<CentraSiteBaseTypeDescription> getAllBaseTypeDescriptions()
                                                                               throws javax.xml.registry.JAXRException
Get all type base descriptions.

Returns:
the collection of base type descriptions
Throws:
javax.xml.registry.JAXRException

getAllVirtualTypeDescriptions

java.util.Collection<CentraSiteVirtualTypeDescription> getAllVirtualTypeDescriptions()
                                                                                     throws javax.xml.registry.JAXRException
Get all virtual type descriptions.

Returns:
the collection of virtual type descriptions
Throws:
javax.xml.registry.JAXRException

getTypeName

java.lang.String getTypeName(java.lang.String xsdFileName)
                             throws javax.xml.registry.JAXRException
Get the type name in the form "{uri}local-name" based on the given XSD file name.

Parameters:
xsdFileName - the XSD file name, starting with "/projects", e.g.: /projects/CentraSite/XMLSchemas/_7Bnamespace_7Dtypename.xsd
Returns:
the type name, e.g.: {namespace}typename, or null if that type does not exist.
Throws:
javax.xml.registry.JAXRException

getWebdavPermissions

InstanceLevelPermissionSet getWebdavPermissions(java.lang.String relativeUrl)
                                                throws javax.xml.registry.JAXRException
Return the instance level permissions for the given WebDAV resource.

Parameters:
relativeUrl - the relative URL of the WebDAV resource
Returns:
the instance level permission set
Throws:
javax.xml.registry.JAXRException

getWebdavCurrentUserPrivilege

InstanceLevelPrivilege getWebdavCurrentUserPrivilege(java.lang.String relativeUrl)
                                                     throws javax.xml.registry.JAXRException
Get the Privilege of the current user for the given WebDAV resource.

Parameters:
relativeUrl - the relative URL of the WebDAV resource
Returns:
the Privilege of the current user for the WebDAV resource. Must not be null.
Throws:
javax.xml.registry.JAXRException

createCentraSiteBusinessQuery

CentraSiteBusinessQuery createCentraSiteBusinessQuery(java.util.Collection objectTypes,
                                                      java.util.Collection findQualifiers)
                                                      throws javax.xml.registry.JAXRException
CentraSiteBusinessQuery factory method.

Parameters:
objectTypes - the path of the doctype or element representing the target object in the database
findQualifiers - the JAXR find qualifiers for this query
Throws:
javax.xml.registry.JAXRException

createCentraSiteBusinessQuery

CentraSiteBusinessQuery createCentraSiteBusinessQuery(java.lang.String objectType,
                                                      java.util.Collection findQualifiers)
                                                      throws javax.xml.registry.JAXRException
CentraSiteBusinessQuery factory method.

Parameters:
objectType - the path of the doctype or element representing the target object in the database
findQualifiers - the JAXR find qualifiers for this query
Throws:
javax.xml.registry.JAXRException

getRegistryObjects

javax.xml.registry.BulkResponse getRegistryObjects(javax.xml.registry.infomodel.User user)
                                                   throws javax.xml.registry.JAXRException
Gets the RegistryObjects owned by the given user. The objects are returned as their concrete type (e.g. Organization, User etc.).

Parameters:
user - the user owning the requested objects
Returns:
BulkResponse containing a heterogeneous Collection of RegistryObjects (e.g. Organization, User etc.).
Throws:
javax.xml.registry.JAXRException

findUserAssets

javax.xml.registry.BulkResponse findUserAssets(java.util.Collection findQualifiers,
                                               javax.xml.registry.infomodel.User user)
                                               throws javax.xml.registry.JAXRException
Gets the top-level assets owned by the given user. An asset is an instance of an asset type. A type is an asset type if it is classified with the "Asset type" concept from the "CentraSiteTypes" taxonomy. In order to find top-level assets, the type also has to be classified as "top level type".

Parameters:
findQualifiers - the JAXR find qualifiers for this query
user - the user owning the requested objects
Returns:
BulkResponse containing a heterogeneous Collection of RegistryObjects (e.g. Organization, User etc.).
Throws:
javax.xml.registry.JAXRException

findClassifyingConcepts

javax.xml.registry.BulkResponse findClassifyingConcepts(java.util.Collection findQualifiers,
                                                        java.util.Collection objectTypes,
                                                        java.lang.String parentKey)
                                                        throws javax.xml.registry.JAXRException
Gets the concepts that are immediate children of the given parent (which can be a taxonomy or a concept), and that are used in at least one classification in the given set of object types.

Parameters:
findQualifiers - a Collection of find qualifiers as defined by the FindQualifier interface, which specifies qualifiers that affect string matching, sorting, boolean predicate logic, and the like.
objectTypes - a Collection of strings that restrict the object types of the requested objects, usually specified as LifeCycleManager constants. User defined object types can be specified in the syntax given by javax.xml.namespace.QName.toString(). If null, or an empty collection, the result will be empty.
For convenience, the names of predefined types are available as constants of the form OBJECT_TYPE_NAME_xxx in Constants.
parentKey - the key of the concepts' parent object (taxonomy or concept)
Returns:
BulkResponse containing the concepts matching the criteria
Throws:
javax.xml.registry.JAXRException

findServicesByClassificationFilename

javax.xml.registry.BulkResponse findServicesByClassificationFilename(java.util.Collection<java.lang.String> findQualifiers,
                                                                     javax.xml.registry.infomodel.ClassificationScheme taxonomy,
                                                                     java.lang.String classificationValue,
                                                                     java.lang.String uriSuffix)
                                                                     throws javax.xml.registry.JAXRException
Find services that have an external classification with the given taxonomy and classification value and that have an ExternalLink that ends with the given uri suffix.

Parameters:
findQualifiers - a Collection of find qualifiers as defined by the FindQualifier interface, which specifies qualifiers that affect string matching, sorting, boolean predicate logic, and the like.
taxonomy - the classifying taxonomy
classificationValue - the classification value
uriSuffix - the uri suffix
Returns:
BulkResponse containing the services matching the criteria
Throws:
javax.xml.registry.JAXRException

getQualifiedUserid

java.lang.String getQualifiedUserid(java.lang.String userName)
                                    throws javax.xml.registry.JAXRException
Transform the given user name to a qualified userid.

Returns:
the qualified userid.
Throws:
javax.xml.registry.JAXRException