org.apache.jetspeed.page.document
Interface DocumentHandlerFactory


public interface DocumentHandlerFactory

DocumentHandlerFactory

Factory for generating DocumentHandlers for specific document types

Version:
$Id: DocumentHandlerFactory.java 516448 2007-03-09 16:25:47Z ate $
Author:
Scott T. Weaver

Method Summary
 boolean getConstraintsEnabled()
           getConstraintsEnabled
 DocumentHandler getDocumentHandler(String documentType)
           getDocumentHandler
 DocumentHandler getDocumentHandlerForPath(String documentPath)
           getDocumentHandlerForPath
 boolean getPermissionsEnabled()
           getPermissionsEnabled
 void registerDocumentHandler(DocumentHandler documentHandler)
           addDocumentHandler
 void setConstraintsEnabled(boolean enabled)
           setConstraintsEnabled
 void setPermissionsEnabled(boolean enabled)
           setPermissionsEnabled
 

Method Detail

getDocumentHandler

DocumentHandler getDocumentHandler(String documentType)
                                   throws UnsupportedDocumentTypeException

getDocumentHandler

Parameters:
documentType - document type to retreive a handler for. Examples: .psml, .link
Returns:
DocumentHanlder for the documentType indicated. Never returns null.
Throws:
UnsupportedDocumentTypeException - If no handler has been registered for the documentType argument.

getDocumentHandlerForPath

DocumentHandler getDocumentHandlerForPath(String documentPath)
                                          throws UnsupportedDocumentTypeException

getDocumentHandlerForPath

Parameters:
documentPath -
Returns:
Throws:
UnsupportedDocumentTypeException

registerDocumentHandler

void registerDocumentHandler(DocumentHandler documentHandler)
                             throws DocumentTypeAlreadyRegisteredException

addDocumentHandler

Parameters:
documentHandler -
Throws:
DocumentTypeAlreadyRegisteredException

getConstraintsEnabled

boolean getConstraintsEnabled()

getConstraintsEnabled

Returns:
enabled indicator

setConstraintsEnabled

void setConstraintsEnabled(boolean enabled)

setConstraintsEnabled

Parameters:
enabled - indicator

getPermissionsEnabled

boolean getPermissionsEnabled()

getPermissionsEnabled

Returns:
enabled indicator

setPermissionsEnabled

void setPermissionsEnabled(boolean enabled)

setPermissionsEnabled

Parameters:
enabled - indicator


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.