org.dspace.app.xmlui.objectmanager
Class DSpaceObjectManager

java.lang.Object
  extended by org.dspace.app.xmlui.objectmanager.DSpaceObjectManager
All Implemented Interfaces:
ObjectManager

public class DSpaceObjectManager
extends Object
implements ObjectManager

The Wing ObjectManager implemented specificaly for DSpace. This manager is able identify all DSpace items, communities, and collections.

Author:
Scott Phillips

Constructor Summary
DSpaceObjectManager()
           
 
Method Summary
 Map<String,String> getAllManagedRepositories()
          For the DSpace implementation we just return a hash of one entry which contains a reference to this repository's metadata.
 String getObjectType(Object object)
          Return a pretty specific string giving a hint to the theme as to what type of DSpace object is being refrenced.
 String getObjectURL(Object object)
          Return the metadata URL of the supplied object, assuming it's a DSpace item, community or collection.
 String getRepositoryIdentifier(Object object)
          Return a globally unique identifier for the repository.
 String getRepositoryURL(Object object)
          Return the metadata URL for this repository.
 boolean manageObject(Object object)
          Manage the given object, if this manager is unable to manage the object then false must be returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSpaceObjectManager

public DSpaceObjectManager()
Method Detail

manageObject

public boolean manageObject(Object object)
Manage the given object, if this manager is unable to manage the object then false must be returned.

Specified by:
manageObject in interface ObjectManager
Parameters:
object - The object to be managed.
Returns:
The object identifiers

getObjectURL

public String getObjectURL(Object object)
                    throws WingException
Return the metadata URL of the supplied object, assuming it's a DSpace item, community or collection.

Specified by:
getObjectURL in interface ObjectManager
Throws:
WingException

getObjectType

public String getObjectType(Object object)
Return a pretty specific string giving a hint to the theme as to what type of DSpace object is being refrenced.

Specified by:
getObjectType in interface ObjectManager

getRepositoryIdentifier

public String getRepositoryIdentifier(Object object)
                               throws WingException
Return a globally unique identifier for the repository. For dspace, we use the handle prefix.

Specified by:
getRepositoryIdentifier in interface ObjectManager
Throws:
WingException

getRepositoryURL

public String getRepositoryURL(Object object)
                        throws WingException
Return the metadata URL for this repository.

Throws:
WingException

getAllManagedRepositories

public Map<String,String> getAllManagedRepositories()
                                             throws WingException
For the DSpace implementation we just return a hash of one entry which contains a reference to this repository's metadata.

Specified by:
getAllManagedRepositories in interface ObjectManager
Throws:
WingException


Copyright © 2011 DuraSpace. All Rights Reserved.