org.dspace.app.xmlui.wing
Interface ObjectManager

All Known Implementing Classes:
DSpaceObjectManager

public interface ObjectManager

The object manager is a class that must be implemented by each specific repository implementation that identifies referenced objects. Since the DRI document includes references to external resources implementers of this class must know how objects are referenced. The specefic implementation of ObjectManager that is used is determened by the WingComponent that is creating the reference.

Author:
Scott Phillips

Method Summary
 Map<String,String> getAllManagedRepositories()
          Return a list of all repositories managed by this manager.
 String getObjectType(Object object)
          Return a descriptive, repository specfic, type for the object.
 String getObjectURL(Object object)
          Return a url referencing the object's metadata.
 String getRepositoryIdentifier(Object object)
          Return a unique identifier of the repository this object is contained in.
 boolean manageObject(Object object)
          Determine if the supplied object is manageable by this implementation of ObjectManager.
 

Method Detail

manageObject

boolean manageObject(Object object)
                     throws WingException
Determine if the supplied object is manageable by this implementation of ObjectManager. If the object is manageable then manage it, and return true.

Parameters:
object - The object to be managed.
Returns:
true if the object can be managed, otherwise false.
Throws:
WingException

getObjectURL

String getObjectURL(Object object)
                    throws WingException
Return a url referencing the object's metadata. If this is unabvailable return null.

Parameters:
object - The object being managed.
Throws:
WingException

getObjectType

String getObjectType(Object object)
                     throws WingException
Return a descriptive, repository specfic, type for the object. If this is unabvailable return null.

Parameters:
object - The object being managed.
Throws:
WingException

getRepositoryIdentifier

String getRepositoryIdentifier(Object object)
                               throws WingException
Return a unique identifier of the repository this object is contained in. If this is unabvailable return null.

Parameters:
object - The object being managed.
Throws:
WingException

getAllManagedRepositories

Map<String,String> getAllManagedRepositories()
                                             throws WingException
Return a list of all repositories managed by this manager. The hash should be of the form repository identifier as the key, and the value for each key is a metadata URL.

Throws:
WingException


Copyright © 2012 DuraSpace. All Rights Reserved.