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

java.lang.Object
  extended by org.alfresco.repo.dictionary.types.period.AbstractPeriodProvider
      extended by org.alfresco.repo.dictionary.types.period.AbstractCalendarPeriodProvider
          extended by org.alfresco.repo.dictionary.types.period.AbstractEndOfCalendarPeriodProvider
All Implemented Interfaces:
org.alfresco.service.cmr.repository.PeriodProvider, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
EndOfMonth, EndOfQuarter, EndOfYear

public abstract class AbstractEndOfCalendarPeriodProvider
extends AbstractCalendarPeriodProvider

Support for calendar based "end of" periods with month and day offsets for fiscal year support


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.repository.PeriodProvider
org.alfresco.service.cmr.repository.PeriodProvider.ExpressionMutiplicity
 
Field Summary
 
Fields inherited from class org.alfresco.repo.dictionary.types.period.AbstractPeriodProvider
MSG_PREFIX
 
Constructor Summary
AbstractEndOfCalendarPeriodProvider()
           
 
Method Summary
 int getStartDayOfMonth()
          Get the start day of the month (as defined by Calendar)
 int getStartMonth()
          Get the start month (as defined by Calendar)
 void setStartDayOfMonth(int startDayOfMonth)
          Set the start day of the month (as defined by Calendar)
 void setStartMonth(int startMonth)
          Set the start month (as defined by Calendar)
 
Methods inherited from class org.alfresco.repo.dictionary.types.period.AbstractCalendarPeriodProvider
add, getDefaultExpression, getExpressionDataType, getExpressionMutiplicity, getNextDate
 
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
 
Methods inherited from interface org.alfresco.service.cmr.repository.PeriodProvider
getPeriodType
 

Constructor Detail

AbstractEndOfCalendarPeriodProvider

public AbstractEndOfCalendarPeriodProvider()
Method Detail

getStartDayOfMonth

public int getStartDayOfMonth()
Get the start day of the month (as defined by Calendar)

Returns:
- the start day of the month

setStartDayOfMonth

public void setStartDayOfMonth(int startDayOfMonth)
Set the start day of the month (as defined by Calendar)

Parameters:
startDayOfMonth -

getStartMonth

public int getStartMonth()
Get the start month (as defined by Calendar)

Returns:
- the start month

setStartMonth

public void setStartMonth(int startMonth)
Set the start month (as defined by Calendar)

Parameters:
startMonth -


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