org.fcrepo.server.access.defaultdisseminator
Class DefaultDisseminatorImpl

java.lang.Object
  extended by org.fcrepo.server.access.defaultdisseminator.InternalService
      extended by org.fcrepo.server.access.defaultdisseminator.DefaultDisseminatorImpl
All Implemented Interfaces:
DefaultDisseminator

public class DefaultDisseminatorImpl
extends InternalService
implements DefaultDisseminator

Implements the methods defined in the DefaultDisseminator interface. This is the default Service Deployment that implements the "contract" of the default Service Definition that is dynamically associated with every digital object in the repository. This class is considered an "internal service" that is built in to the Fedora system. Its purpose is to endow every digital object with a set of generic behaviors. It is an implementation of what is known as the Default Disseminator. Unlike other Service Definitions and Deployments, there is no Service Definition Object or Service Deployment Object stored in the repository.

Version:
$Id: DefaultDisseminatorImpl.java 7973 2009-04-21 22:03:40Z kstrnad $
Author:
Sandy Payette

Constructor Summary
DefaultDisseminatorImpl(Context context, Date asOfDateTime, DOReader reader, Access access, String reposBaseURL, File reposHomeDir)
           
 
Method Summary
static MethodDef[] reflectMethods()
          Method implementation of reflectMethods from the InternalService interface.
 MIMETypedStream viewDublinCore()
          Returns the Dublin Core record for the object, if one exists.
 MIMETypedStream viewItemIndex()
          Returns an HTML rendering of the Item Index for the object.
 MIMETypedStream viewMethodIndex()
          Returns an HTML rendering of the Dissemination Index for the object.
 MIMETypedStream viewObjectProfile()
          Returns an HTML rendering of the object profile which contains key metadata from the object, plus URLs for the object's Dissemination Index and Item Index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDisseminatorImpl

public DefaultDisseminatorImpl(Context context,
                               Date asOfDateTime,
                               DOReader reader,
                               Access access,
                               String reposBaseURL,
                               File reposHomeDir)
                        throws ServerException
Throws:
ServerException
Method Detail

viewObjectProfile

public MIMETypedStream viewObjectProfile()
                                  throws ServerException
Returns an HTML rendering of the object profile which contains key metadata from the object, plus URLs for the object's Dissemination Index and Item Index. The data is returned as HTML in a presentation-oriented format. This is accomplished by doing an XSLT transform on the XML that is obtained from getObjectProfile in API-A.

Specified by:
viewObjectProfile in interface DefaultDisseminator
Returns:
html packaged as a MIMETypedStream
Throws:
ServerException

viewMethodIndex

public MIMETypedStream viewMethodIndex()
                                throws ServerException
Returns an HTML rendering of the Dissemination Index for the object. The Dissemination Index is a list of method definitions that represent all disseminations possible on the object. The Dissemination Index is returned as HTML in a presentation-oriented format. This is accomplished by doing an XSLT transform on the XML that is obtained from listMethods in API-A.

Specified by:
viewMethodIndex in interface DefaultDisseminator
Returns:
html packaged as a MIMETypedStream
Throws:
ServerException

viewItemIndex

public MIMETypedStream viewItemIndex()
                              throws ServerException
Returns an HTML rendering of the Item Index for the object. The Item Index is a list of all datastreams in the object. The datastream items can be data or metadata. The Item Index is returned as HTML in a presentation-oriented format. This is accomplished by doing an XSLT transform on the XML that is obtained from listDatastreams in API-A.

Specified by:
viewItemIndex in interface DefaultDisseminator
Returns:
html packaged as a MIMETypedStream
Throws:
ServerException

viewDublinCore

public MIMETypedStream viewDublinCore()
                               throws ServerException
Returns the Dublin Core record for the object, if one exists. The record is returned as HTML in a presentation-oriented format.

Specified by:
viewDublinCore in interface DefaultDisseminator
Returns:
html packaged as a MIMETypedStream
Throws:
ServerException

reflectMethods

public static MethodDef[] reflectMethods()
Method implementation of reflectMethods from the InternalService interface. This will return an array of method definitions that constitute the behaviors of the Default Disseminator which is associated with every Fedora object. These will be the methods promulgated by the DefaultDisseminator interface.

Returns:
an array of method defintions


Copyright © 2011 DuraSpace. All Rights Reserved.