org.alfresco.repo.dictionary.types.period
Class Cron

java.lang.Object
  extended by org.alfresco.repo.dictionary.types.period.AbstractPeriodProvider
      extended by org.alfresco.repo.dictionary.types.period.Cron
All Implemented Interfaces:
PeriodProvider, org.springframework.beans.factory.InitializingBean

public class Cron
extends AbstractPeriodProvider

Cron based periods


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.repository.PeriodProvider
PeriodProvider.ExpressionMutiplicity
 
Field Summary
static java.lang.String PERIOD_TYPE
          Period type
 
Fields inherited from class org.alfresco.repo.dictionary.types.period.AbstractPeriodProvider
MSG_PREFIX
 
Constructor Summary
Cron()
           
 
Method Summary
 java.lang.String getDefaultExpression()
          Get the default expression - this could be null
 QName getExpressionDataType()
          Return the Alfresco data type QName to which the string value of the expression will be converted.
 PeriodProvider.ExpressionMutiplicity getExpressionMutiplicity()
          Is the expression required etc ...
 java.util.Date getNextDate(java.util.Date date, java.lang.String expression)
          Get the next date - the provided date + period
 java.lang.String getPeriodType()
          Get the name for the period.
 
Methods inherited from class org.alfresco.repo.dictionary.types.period.AbstractPeriodProvider
afterPropertiesSet, getDisplayLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERIOD_TYPE

public static final java.lang.String PERIOD_TYPE
Period type

See Also:
Constant Field Values
Constructor Detail

Cron

public Cron()
Method Detail

getDefaultExpression

public java.lang.String getDefaultExpression()
Description copied from interface: PeriodProvider
Get the default expression - this could be null

Returns:
- the default expression.

getExpressionMutiplicity

public PeriodProvider.ExpressionMutiplicity getExpressionMutiplicity()
Description copied from interface: PeriodProvider
Is the expression required etc ...

Returns:
the multiplicity

getNextDate

public java.util.Date getNextDate(java.util.Date date,
                                  java.lang.String expression)
Description copied from interface: PeriodProvider
Get the next date - the provided date + period

Returns:
the next date in the period

getPeriodType

public java.lang.String getPeriodType()
Description copied from interface: PeriodProvider
Get the name for the period.

Returns:
- period name

getExpressionDataType

public QName getExpressionDataType()
Description copied from interface: PeriodProvider
Return the Alfresco data type QName to which the string value of the expression will be converted.

Returns:
the alfresco data type or null if an expression is not allowed.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.