uk.ac.soton.itinnovation.registry.component.xml.registration
Class XmlRegistrationFacility

java.lang.Object
  extended by uk.ac.soton.itinnovation.registry.component.xml.login.XmlCredentialRequiredAdapter
      extended by uk.ac.soton.itinnovation.registry.component.xml.registration.XmlRegistrationFacility
All Implemented Interfaces:
CredentialRequired, Registration

public class XmlRegistrationFacility
extends XmlCredentialRequiredAdapter
implements Registration

Implementation of the registration interface using an XML database management system.

Author:
Uwe Radetzki
See Also:
registration.Registration

Field Summary
 
Fields inherited from class uk.ac.soton.itinnovation.registry.component.xml.login.XmlCredentialRequiredAdapter
credentialFacility
 
Constructor Summary
XmlRegistrationFacility()
           
 
Method Summary
 void deleteAllEntities()
          Removes all entities form the registry that are accessible by the user.
 void deleteEntity(String concept, String id)
          Removes an entity from the registry.
 void insertRelationship(String fromEntityId, String relationshipName, String toEntityId)
          Add a relationship between two entities stored.
 String registerEntity(String concept, Document content, String id)
          Registers an entity in the registry.
 String registerEntity(String concept, String content, String id)
          Registers an entity in the registry.
 String registerEntity(String concept, URI uri, String id)
          Registers an entity in the registry.
 
Methods inherited from class uk.ac.soton.itinnovation.registry.component.xml.login.XmlCredentialRequiredAdapter
getAccess, removeCredential, setCredential
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.soton.itinnovation.registry.icomponent.access.CredentialRequired
removeCredential, setCredential
 

Constructor Detail

XmlRegistrationFacility

public XmlRegistrationFacility()
                        throws AccessException
Throws:
AccessException
Method Detail

registerEntity

public String registerEntity(String concept,
                             URI uri,
                             String id)
                      throws RegistrationException,
                             AccessException
Description copied from interface: Registration
Registers an entity in the registry. Creates an update if the id used already exists.

Specified by:
registerEntity in interface Registration
Parameters:
concept - Concept to which the entity belongs
uri - URI of the entity
id - unique identifier. If the id is null, a new identifier will be automatically generated.
Returns:
the id of the entity in the registry
Throws:
RegistrationException
AccessException

registerEntity

public String registerEntity(String concept,
                             String content,
                             String id)
                      throws RegistrationException,
                             AccessException
Description copied from interface: Registration
Registers an entity in the registry. Creates an update if the id used already exists.

Specified by:
registerEntity in interface Registration
Parameters:
concept - Concept to which the entity belongs
content - String content of entity
id - unique identifier. If the id is null, a new identifier will be automatically generated.
Returns:
the id of the entity in the registry
Throws:
RegistrationException
AccessException

registerEntity

public String registerEntity(String concept,
                             Document content,
                             String id)
                      throws RegistrationException,
                             AccessException
Description copied from interface: Registration
Registers an entity in the registry. Creates an update if the id used already exists.

Specified by:
registerEntity in interface Registration
Parameters:
concept - Concept to which the entity belongs
content - DOM document of entity
id - unique identifier. If the id is null, a new identifier will be automatically generated.
Returns:
the id of the entity in the registry
Throws:
RegistrationException
AccessException

deleteEntity

public void deleteEntity(String concept,
                         String id)
                  throws RegistrationException,
                         AccessException
Description copied from interface: Registration
Removes an entity from the registry.

Specified by:
deleteEntity in interface Registration
Throws:
RegistrationException
AccessException

insertRelationship

public void insertRelationship(String fromEntityId,
                               String relationshipName,
                               String toEntityId)
                        throws RegistrationException,
                               AccessException
Description copied from interface: Registration
Add a relationship between two entities stored.

Specified by:
insertRelationship in interface Registration
Throws:
RegistrationException
AccessException

deleteAllEntities

public void deleteAllEntities()
                       throws RegistrationException,
                              AccessException
Description copied from interface: Registration
Removes all entities form the registry that are accessible by the user.

Specified by:
deleteAllEntities in interface Registration
Throws:
RegistrationException
AccessException


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.