org.apache.lenya.cms.cocoon.acting
Class DocumentIdExistsAction

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.acting.AbstractAction
          extended by org.apache.lenya.cms.cocoon.acting.DocumentIdExistsAction
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.LogEnabled, org.apache.cocoon.acting.Action

public class DocumentIdExistsAction
extends org.apache.cocoon.acting.AbstractAction

Action that checks the sitetree if there is a node with the current document-id. This is used to prevent creation of documents with non-unique document-ids


Field Summary
static java.lang.String AREA_PARAMETER_NAME
           
static java.lang.String DOCUMENT_ID_PARAMETER_NAME
          Check if there is a doument in the site tree with the given document-id and area [optional].
 
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
 
Fields inherited from interface org.apache.cocoon.acting.Action
ROLE
 
Constructor Summary
DocumentIdExistsAction()
           
 
Method Summary
 java.util.Map act(org.apache.cocoon.environment.Redirector redirector, org.apache.cocoon.environment.SourceResolver resolver, java.util.Map objectModel, java.lang.String source, org.apache.avalon.framework.parameters.Parameters parameters)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCUMENT_ID_PARAMETER_NAME

public static final java.lang.String DOCUMENT_ID_PARAMETER_NAME
Check if there is a doument in the site tree with the given document-id and area [optional]. If yes return an empty map, if not return null.

See Also:
Constant Field Values

AREA_PARAMETER_NAME

public static final java.lang.String AREA_PARAMETER_NAME
See Also:
Constant Field Values
Constructor Detail

DocumentIdExistsAction

public DocumentIdExistsAction()
Method Detail

act

public java.util.Map act(org.apache.cocoon.environment.Redirector redirector,
                         org.apache.cocoon.environment.SourceResolver resolver,
                         java.util.Map objectModel,
                         java.lang.String source,
                         org.apache.avalon.framework.parameters.Parameters parameters)
                  throws PageEnvelopeException,
                         SiteTreeException,
                         org.apache.avalon.framework.parameters.ParameterException
Throws:
PageEnvelopeException
SiteTreeException
org.apache.avalon.framework.parameters.ParameterException


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