Nuxeo Enterprise Platform 5.1

org.nuxeo.ecm.platform.publishing
Class PublishingServiceImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.platform.publishing.PublishingServiceImpl
All Implemented Interfaces:
Serializable, PublishingService, Adaptable, Component, Extensible

public class PublishingServiceImpl
extends DefaultComponent
implements PublishingService

Publishing service implementation.

Author:
Julien Anguenot
See Also:
Serialized Form

Field Summary
static ComponentName NAME
           
protected  PublishingValidDateFieldDesc prefixed
           
protected  ValidatorsRuleDesc validatorsRuleDesc
           
 
Constructor Summary
PublishingServiceImpl()
           
 
Method Summary
 String[] getValidatorsFor(DocumentModel dm)
          Computes the list of publishing validators given the document model of the document just published.
 ValidatorsRule getValidatorsRule()
          Returns the registered section validators rule.
 String getValidDateFieldName()
          Returns the field name used to specify the date at which the publication should occur.
 String getValidDateFieldSchemaPrefixName()
          Returns the schema name where the field used to specify the date at which the publication should occur exists.
 void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
           
 void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
           
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, deactivate, getAdapter, registerExtension, unregisterExtension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final ComponentName NAME

prefixed

protected PublishingValidDateFieldDesc prefixed

validatorsRuleDesc

protected ValidatorsRuleDesc validatorsRuleDesc
Constructor Detail

PublishingServiceImpl

public PublishingServiceImpl()
Method Detail

getValidatorsRule

public ValidatorsRule getValidatorsRule()
                                 throws PublishingValidatorException
Description copied from interface: PublishingService
Returns the registered section validators rule.

Specified by:
getValidatorsRule in interface PublishingService
Returns:
a validators rule
Throws:
PublishingValidatorException

getValidDateFieldName

public String getValidDateFieldName()
Description copied from interface: PublishingService
Returns the field name used to specify the date at which the publication should occur.

Specified by:
getValidDateFieldName in interface PublishingService
Returns:
the field name.

getValidDateFieldSchemaPrefixName

public String getValidDateFieldSchemaPrefixName()
Description copied from interface: PublishingService
Returns the schema name where the field used to specify the date at which the publication should occur exists.

Specified by:
getValidDateFieldSchemaPrefixName in interface PublishingService
Returns:
the schema name.

getValidatorsFor

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

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

registerContribution

public void registerContribution(Object contribution,
                                 String extensionPoint,
                                 ComponentInstance contributor)
Overrides:
registerContribution in class DefaultComponent

unregisterContribution

public void unregisterContribution(Object contribution,
                                   String extensionPoint,
                                   ComponentInstance contributor)
Overrides:
unregisterContribution in class DefaultComponent

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.