org.apache.jetspeed.page.document.psml
Class DocumentHandlerFactoryImpl

java.lang.Object
  extended by org.apache.jetspeed.page.document.psml.DocumentHandlerFactoryImpl
All Implemented Interfaces:
DocumentHandlerFactory

public class DocumentHandlerFactoryImpl
extends java.lang.Object
implements DocumentHandlerFactory

DocumentHandlerFactoryImpl

Version:
$Id: DocumentHandlerFactoryImpl.java 517124 2007-03-12 08:10:25Z ate $
Author:
Scott T. Weaver

Constructor Summary
DocumentHandlerFactoryImpl()
           
DocumentHandlerFactoryImpl(java.util.Map handlers)
           
 
Method Summary
 boolean getConstraintsEnabled()
           getConstraintsEnabled
 DocumentHandler getDocumentHandler(java.lang.String documentType)
           getDocumentHandler
 DocumentHandler getDocumentHandlerForPath(java.lang.String documentPath)
           getDocumentHandlerForPath
 boolean getPermissionsEnabled()
           getPermissionsEnabled
 void registerDocumentHandler(DocumentHandler documentHandler)
           registerDocumentHandler
 void setConstraintsEnabled(boolean enabled)
           setConstraintsEnabled
 void setPermissionsEnabled(boolean enabled)
           setPermissionsEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentHandlerFactoryImpl

public DocumentHandlerFactoryImpl(java.util.Map handlers)

DocumentHandlerFactoryImpl

public DocumentHandlerFactoryImpl()
Method Detail

getDocumentHandler

public DocumentHandler getDocumentHandler(java.lang.String documentType)
                                   throws UnsupportedDocumentTypeException

getDocumentHandler

Specified by:
getDocumentHandler in interface DocumentHandlerFactory
Parameters:
documentType -
Returns:
Throws:
UnsupportedDocumentTypeException - If no handler has been registered for the documentType argument.
See Also:
DocumentHandlerFactory.getDocumentHandler(java.lang.String)

registerDocumentHandler

public void registerDocumentHandler(DocumentHandler documentHandler)
                             throws DocumentTypeAlreadyRegisteredException

registerDocumentHandler

Specified by:
registerDocumentHandler in interface DocumentHandlerFactory
Parameters:
documentHandler -
Throws:
DocumentTypeAlreadyRegisteredException
See Also:
org.apache.jetspeed.page.document.DocumentHandlerFactory#registerDocumentHandler(org.apache.jetspeed.page.documenthandler.DocumentHandler)

getDocumentHandlerForPath

public DocumentHandler getDocumentHandlerForPath(java.lang.String documentPath)
                                          throws UnsupportedDocumentTypeException

getDocumentHandlerForPath

Specified by:
getDocumentHandlerForPath in interface DocumentHandlerFactory
Parameters:
documentPath -
Returns:
Throws:
UnsupportedDocumentTypeException
See Also:
DocumentHandlerFactory.getDocumentHandlerForPath(java.lang.String)

getPermissionsEnabled

public boolean getPermissionsEnabled()

getPermissionsEnabled

Specified by:
getPermissionsEnabled in interface DocumentHandlerFactory
Returns:
See Also:
DocumentHandlerFactory.getPermissionsEnabled()

setPermissionsEnabled

public void setPermissionsEnabled(boolean enabled)

setPermissionsEnabled

Specified by:
setPermissionsEnabled in interface DocumentHandlerFactory
Parameters:
enabled - indicator
See Also:
DocumentHandlerFactory.setPermissionsEnabled(boolean)

getConstraintsEnabled

public boolean getConstraintsEnabled()

getConstraintsEnabled

Specified by:
getConstraintsEnabled in interface DocumentHandlerFactory
Returns:
See Also:
DocumentHandlerFactory.getConstraintsEnabled()

setConstraintsEnabled

public void setConstraintsEnabled(boolean enabled)

setConstraintsEnabled

Specified by:
setConstraintsEnabled in interface DocumentHandlerFactory
Parameters:
enabled - indicator
See Also:
DocumentHandlerFactory.setConstraintsEnabled(boolean)


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