com.centrasite.jaxr
Interface CentraSiteLifeCycleManager

All Superinterfaces:
javax.xml.registry.LifeCycleManager

public interface CentraSiteLifeCycleManager
extends javax.xml.registry.LifeCycleManager

Defines CentraSite extensions of the JAXR LifeCycleManager interface.


Field Summary
static java.lang.String CENTRASITE_ACE
           
static java.lang.String CENTRASITE_ACL
           
static java.lang.String CENTRASITE_BASETYPEDESCRIPTION
           
static java.lang.String CENTRASITE_CLASSIFICATIONATTRIBUTE
           
static java.lang.String CENTRASITE_COMPUTED_ATTRIBUTE
           
static java.lang.String CENTRASITE_ENUM_TYPE
           
static java.lang.String CENTRASITE_EXTENSIONPOINT
           
static java.lang.String CENTRASITE_FILEATTRIBUTE
           
static java.lang.String CENTRASITE_FILTERCONTEXT
           
static java.lang.String CENTRASITE_FILTERMANAGER
           
static java.lang.String CENTRASITE_IMPORTVALIDATOR
           
static java.lang.String CENTRASITE_LOCALE
           
static java.lang.String CENTRASITE_OPERATION
          Deprecated.  
static java.lang.String CENTRASITE_OPERATIONDESCRIPTION
          Deprecated.  
static java.lang.String CENTRASITE_PRINCIPAL
           
static java.lang.String CENTRASITE_PRIVILEGE
           
static java.lang.String CENTRASITE_RELATIONSHIPATTRIBUTE
           
static java.lang.String CENTRASITE_SLOTDESCRIPTION
           
static java.lang.String CENTRASITE_TRIGGERDESCRIPTION
          Deprecated.  
static java.lang.String CENTRASITE_TYPEDESCRIPTION
           
static java.lang.String CENTRASITE_VIRTUALTYPEDESCRIPTION
           
static java.lang.String INSTANCE_LEVEL_PERMISSION_ENTRY
           
static java.lang.String INSTANCE_LEVEL_PERMISSION_SET
           
static java.lang.String INTERNATIONAL_RICHTEXT
           
static java.lang.String PRIVILEGE
           
static java.lang.String RICHTEXT
           
 
Fields inherited from interface javax.xml.registry.LifeCycleManager
ASSOCIATION, AUDITABLE_EVENT, CLASSIFICATION, CLASSIFICATION_SCHEME, CONCEPT, EMAIL_ADDRESS, EXTERNAL_IDENTIFIER, EXTERNAL_LINK, EXTRINSIC_OBJECT, INTERNATIONAL_STRING, KEY, LOCALIZED_STRING, ORGANIZATION, PERSON_NAME, POSTAL_ADDRESS, REGISTRY_ENTRY, REGISTRY_PACKAGE, SERVICE, SERVICE_BINDING, SLOT, SPECIFICATION_LINK, TELEPHONE_NUMBER, USER, VERSIONABLE
 
Method Summary
 void addPolicyParameter(java.lang.String contextQualifier, java.lang.Object param)
          Add a parameter instance to the collection of parameters for the policy execution.
 javax.xml.registry.BulkResponse approveObjects(java.util.Collection keys)
          Approves one or more previously submitted objects.
 CentraSiteImportValidator createImportValidator(boolean replaceDifferentState, boolean matchTimestamps)
          Construct an ImportValidator.
 javax.xml.registry.infomodel.RegistryObject createObject(javax.xml.registry.infomodel.Concept typeConcept)
          Create a RegistryObject instance of the given type.
 com.softwareag.cst.util.BidirectionalMap deepCopy(javax.xml.registry.infomodel.RegistryObject ro)
          Create a deep copy of the given RegistryObject.
 void deleteTypes(java.util.Collection<CentraSiteTypeDescription> types, RepositoryConnector repCon)
          Delete the given object types.
 java.util.Collection<javax.xml.registry.infomodel.AuditableEvent> purgeAuditableEvents(java.sql.Timestamp threshold, boolean returnPurgedEvents)
          For all RegistryObjects, purge the AuditableEvents that are older than the given threshold.
 java.util.Collection<javax.xml.registry.infomodel.AuditableEvent> purgeAuditableEvents(java.sql.Timestamp threshold, java.util.List<java.lang.String> keys, boolean returnPurgedEvents)
          For the given RegistryObject keys(uddi key String), purge the AuditableEvents that are older than the given threshold.
 javax.xml.registry.BulkResponse retract(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> objects)
          Mark the given RegistryObjects as deleted.
 javax.xml.registry.BulkResponse saveObjectsInternal(java.util.Collection objects, int saveQualifier)
          Save given objects.
 void saveSchema(java.lang.String fileName, java.lang.String schema)
          Store an XSD file into WebDAV.
 
Methods inherited from interface javax.xml.registry.LifeCycleManager
createAssociation, createClassification, createClassification, createClassification, createClassificationScheme, createClassificationScheme, createClassificationScheme, createConcept, createConcept, createEmailAddress, createEmailAddress, createExternalIdentifier, createExternalIdentifier, createExternalLink, createExternalLink, createExtrinsicObject, createInternationalString, createInternationalString, createInternationalString, createKey, createLocalizedString, createLocalizedString, createObject, createOrganization, createOrganization, createPersonName, createPersonName, createPostalAddress, createRegistryPackage, createRegistryPackage, createService, createService, createServiceBinding, createSlot, createSlot, createSpecificationLink, createTelephoneNumber, createUser, deleteObjects, deleteObjects, deprecateObjects, getRegistryService, saveObjects, unDeprecateObjects
 

Field Detail

CENTRASITE_OPERATION

static final java.lang.String CENTRASITE_OPERATION
Deprecated. 
See Also:
Constant Field Values

CENTRASITE_ACL

static final java.lang.String CENTRASITE_ACL
See Also:
Constant Field Values

CENTRASITE_ACE

static final java.lang.String CENTRASITE_ACE
See Also:
Constant Field Values

CENTRASITE_PRINCIPAL

static final java.lang.String CENTRASITE_PRINCIPAL
See Also:
Constant Field Values

CENTRASITE_PRIVILEGE

static final java.lang.String CENTRASITE_PRIVILEGE
See Also:
Constant Field Values

PRIVILEGE

static final java.lang.String PRIVILEGE
See Also:
Constant Field Values

INSTANCE_LEVEL_PERMISSION_SET

static final java.lang.String INSTANCE_LEVEL_PERMISSION_SET
See Also:
Constant Field Values

INSTANCE_LEVEL_PERMISSION_ENTRY

static final java.lang.String INSTANCE_LEVEL_PERMISSION_ENTRY
See Also:
Constant Field Values

CENTRASITE_TYPEDESCRIPTION

static final java.lang.String CENTRASITE_TYPEDESCRIPTION
See Also:
Constant Field Values

CENTRASITE_BASETYPEDESCRIPTION

static final java.lang.String CENTRASITE_BASETYPEDESCRIPTION
See Also:
Constant Field Values

CENTRASITE_VIRTUALTYPEDESCRIPTION

static final java.lang.String CENTRASITE_VIRTUALTYPEDESCRIPTION
See Also:
Constant Field Values

CENTRASITE_TRIGGERDESCRIPTION

static final java.lang.String CENTRASITE_TRIGGERDESCRIPTION
Deprecated. 
See Also:
Constant Field Values

CENTRASITE_OPERATIONDESCRIPTION

static final java.lang.String CENTRASITE_OPERATIONDESCRIPTION
Deprecated. 
See Also:
Constant Field Values

CENTRASITE_SLOTDESCRIPTION

static final java.lang.String CENTRASITE_SLOTDESCRIPTION
See Also:
Constant Field Values

CENTRASITE_ENUM_TYPE

static final java.lang.String CENTRASITE_ENUM_TYPE
See Also:
Constant Field Values

CENTRASITE_CLASSIFICATIONATTRIBUTE

static final java.lang.String CENTRASITE_CLASSIFICATIONATTRIBUTE
See Also:
Constant Field Values

CENTRASITE_FILEATTRIBUTE

static final java.lang.String CENTRASITE_FILEATTRIBUTE
See Also:
Constant Field Values

CENTRASITE_RELATIONSHIPATTRIBUTE

static final java.lang.String CENTRASITE_RELATIONSHIPATTRIBUTE
See Also:
Constant Field Values

CENTRASITE_COMPUTED_ATTRIBUTE

static final java.lang.String CENTRASITE_COMPUTED_ATTRIBUTE
See Also:
Constant Field Values

CENTRASITE_FILTERMANAGER

static final java.lang.String CENTRASITE_FILTERMANAGER
See Also:
Constant Field Values

CENTRASITE_FILTERCONTEXT

static final java.lang.String CENTRASITE_FILTERCONTEXT
See Also:
Constant Field Values

CENTRASITE_IMPORTVALIDATOR

static final java.lang.String CENTRASITE_IMPORTVALIDATOR
See Also:
Constant Field Values

CENTRASITE_EXTENSIONPOINT

static final java.lang.String CENTRASITE_EXTENSIONPOINT
See Also:
Constant Field Values

CENTRASITE_LOCALE

static final java.lang.String CENTRASITE_LOCALE
See Also:
Constant Field Values

RICHTEXT

static final java.lang.String RICHTEXT
See Also:
Constant Field Values

INTERNATIONAL_RICHTEXT

static final java.lang.String INTERNATIONAL_RICHTEXT
See Also:
Constant Field Values
Method Detail

approveObjects

javax.xml.registry.BulkResponse approveObjects(java.util.Collection keys)
                                               throws javax.xml.registry.JAXRException
Approves one or more previously submitted objects. The operation is possible only for instances of RegistryEntry.

Parameters:
keys - a Collection of keys for the objects to be approved
Returns:
a BulkResponse containing the Collection of keys for those objects that were approved successfully and any JAXRException that was encountered in case of partial commit
Throws:
javax.xml.registry.JAXRException - if the JAXR provider encounters an internal error

retract

javax.xml.registry.BulkResponse retract(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> objects)
                                        throws javax.xml.registry.JAXRException
Mark the given RegistryObjects as deleted. In order to persist the changes call saveObjects().

Parameters:
objects - the collection of RegistryObjects to be marked as deleted.
Returns:
a BulkResponse containing the Collection of keys for those objects that were marked as deleted.
Throws:
javax.xml.registry.JAXRException

saveObjectsInternal

javax.xml.registry.BulkResponse saveObjectsInternal(java.util.Collection objects,
                                                    int saveQualifier)
                                                    throws javax.xml.registry.JAXRException
Save given objects.

Parameters:
objects - collection of objects to be saved
saveQualifier - a SaveQualifier indicating the operation during which save is called
Throws:
javax.xml.registry.JAXRException
See Also:
SaveQualifier

saveSchema

void saveSchema(java.lang.String fileName,
                java.lang.String schema)
                throws javax.xml.registry.JAXRException
Store an XSD file into WebDAV. The operation will automatically be committed.

Parameters:
fileName - the filename of the schema file, starting with "/projects"
schema - the XML schema
Throws:
javax.xml.registry.JAXRException

deepCopy

com.softwareag.cst.util.BidirectionalMap deepCopy(javax.xml.registry.infomodel.RegistryObject ro)
                                                  throws javax.xml.registry.JAXRException
Create a deep copy of the given RegistryObject. The deep copy includes all embedded objects like associations, classifications, etc. The copy will be a new RegistryObject, with new keys assigned.

Parameters:
ro - the RegistryObject to be copied
Returns:
a BidirectionalMap that has the original RegistryObject as key entries, and the copied RegistryObjects as values.
Throws:
javax.xml.registry.JAXRException

createImportValidator

CentraSiteImportValidator createImportValidator(boolean replaceDifferentState,
                                                boolean matchTimestamps)
                                                throws javax.xml.registry.JAXRException
Construct an ImportValidator.

Parameters:
replaceDifferentState - if set to true, existing objects are replaced
matchTimestamps - if set to true, objects that match existing objects by timestamp are ignored
Throws:
javax.xml.registry.JAXRException

purgeAuditableEvents

java.util.Collection<javax.xml.registry.infomodel.AuditableEvent> purgeAuditableEvents(java.sql.Timestamp threshold,
                                                                                       boolean returnPurgedEvents)
                                                                                       throws javax.xml.registry.JAXRException
For all RegistryObjects, purge the AuditableEvents that are older than the given threshold. If requested, return the collection of purged events.

Parameters:
threshold - the threshold
returnPurgedEvents - true if the purged events are to be returned
Returns:
the collection of purged events. Will be empty if returnPurgedEvents = false.
Throws:
javax.xml.registry.JAXRException

purgeAuditableEvents

java.util.Collection<javax.xml.registry.infomodel.AuditableEvent> purgeAuditableEvents(java.sql.Timestamp threshold,
                                                                                       java.util.List<java.lang.String> keys,
                                                                                       boolean returnPurgedEvents)
                                                                                       throws javax.xml.registry.JAXRException
For the given RegistryObject keys(uddi key String), purge the AuditableEvents that are older than the given threshold. If requested, return the collection of purged events.

Parameters:
threshold - the threshold
returnPurgedEvents - true if the purged events are to be returned
Returns:
the collection of purged events. Will be empty if returnPurgedEvents = false.
Throws:
javax.xml.registry.JAXRException

deleteTypes

void deleteTypes(java.util.Collection<CentraSiteTypeDescription> types,
                 RepositoryConnector repCon)
                 throws java.lang.Exception
Delete the given object types.

Parameters:
types - the collection of object types to be deleted
repCon - the repository connector for the type deletion
Throws:
javax.xml.registry.JAXRException
java.lang.Exception

createObject

javax.xml.registry.infomodel.RegistryObject createObject(javax.xml.registry.infomodel.Concept typeConcept)
                                                         throws javax.xml.registry.JAXRException
Create a RegistryObject instance of the given type. The type concept may either be a member of the ObjectType taxonomy (and thus denote a normal type), or a member of the CentraSiteVirtualTypes taxonomy (and thus denote a virtual type).

Parameters:
typeConcept - the type concept
Returns:
the type instance
Throws:
javax.xml.registry.JAXRException

addPolicyParameter

void addPolicyParameter(java.lang.String contextQualifier,
                        java.lang.Object param)
                        throws javax.xml.registry.JAXRException
Add a parameter instance to the collection of parameters for the policy execution. These parameters have effect if update actions are performed and policies called (e.g. saveObjects()). Note that those parameters will be reset after update action and must be specified again for subsequent actions.

Parameters:
contextQualifier - the qualifier string specifying the parameter instance
param - the parameter instance
Throws:
javax.xml.registry.JAXRException