Nuxeo Enterprise Platform 5.1

org.nuxeo.ecm.platform.publishing.rules
Class DefaultValidatorsRule

java.lang.Object
  extended by org.nuxeo.ecm.platform.publishing.api.AbstractNuxeoCoreValidatorsRule
      extended by org.nuxeo.ecm.platform.publishing.rules.DefaultValidatorsRule
All Implemented Interfaces:
Serializable, ValidatorsRule

public class DefaultValidatorsRule
extends AbstractNuxeoCoreValidatorsRule

Default NXP validator.

Validators here will be principals having manage everything rights in the sections where the document has been published.

Author:
Julien Anguenot
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.nuxeo.ecm.platform.publishing.api.AbstractNuxeoCoreValidatorsRule
loginCtx, session
 
Constructor Summary
DefaultValidatorsRule()
           
 
Method Summary
 String[] computesValidatorsFor(DocumentModel dm)
          Computes the list of publishing validators given the document model of the document just published.
 
Methods inherited from class org.nuxeo.ecm.platform.publishing.api.AbstractNuxeoCoreValidatorsRule
closeCoreSession, initializeCoreSession, login, logout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValidatorsRule

public DefaultValidatorsRule()
Method Detail

computesValidatorsFor

public String[] computesValidatorsFor(DocumentModel dm)
                               throws PublishingValidatorException
Description copied from interface: ValidatorsRule
Computes the list of publishing validators given the document model of the document just published.

Parameters:
dm - : a Nuxeo Core document model. (the document that just has been published)
Returns:
a list of principal names.
Throws:
PublishingValidatorException - TODO

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.