Package com.day.cq.reporting
Interface ConfigService
-
public interface ConfigServiceThis interface defines a configuration service for the reporting framework.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanenforceSnapshotUser()Determines if snapshots are always taken for the user specified bygetSnapshotUserId(), or if this user only works as a fallback if the user that finished the report is not available anymore.intgetFirstDayOfWeek()Get the first day of a week (using the constants provided byCalendar).java.lang.IntegergetHourOfDay()Get the hour of day daily snapshots are taken.java.util.LocalegetLocale()Get the locale to be used for reportingjava.lang.IntegergetMaxRows()Get the maximum number of rows persisted per snapshot.java.lang.IntegergetMinuteOfHour()Get the minute of hour hourly snapshots are takenjava.lang.StringgetReportPath()Get the base path for reports.java.lang.StringgetSnapshots()Get the base path for snapshot data.java.lang.StringgetSnapshotUserId()Get the ID of the user historic snapshots are taken for.java.util.TimeZonegetTimeZone()Get the timezone to be used for any timebased calculationbooleanisFakeCreateAllowed()Determines if creating fake data (usingFakeDataCreationServlet) is allowed.
-
-
-
Method Detail
-
getTimeZone
java.util.TimeZone getTimeZone()
Get the timezone to be used for any timebased calculation- Returns:
- The timezone
-
getLocale
java.util.Locale getLocale()
Get the locale to be used for reporting- Returns:
- The locale
-
getFirstDayOfWeek
int getFirstDayOfWeek()
Get the first day of a week (using the constants provided byCalendar).- Returns:
- The first day of a week
-
getSnapshots
java.lang.String getSnapshots()
Get the base path for snapshot data.- Returns:
- The base path for snapshot data
-
getReportPath
java.lang.String getReportPath()
Get the base path for reports.- Returns:
- The base path for reports
-
getMaxRows
java.lang.Integer getMaxRows()
Get the maximum number of rows persisted per snapshot.- Returns:
- The maximum number of rows
-
getHourOfDay
java.lang.Integer getHourOfDay()
Get the hour of day daily snapshots are taken.- Returns:
- The hour of day daily snapshots are taken
-
getMinuteOfHour
java.lang.Integer getMinuteOfHour()
Get the minute of hour hourly snapshots are taken- Returns:
- The minute of hour hourly snapshots are taken
-
isFakeCreateAllowed
boolean isFakeCreateAllowed()
Determines if creating fake data (usingFakeDataCreationServlet) is allowed. Fake data can only be created withadminsession.- Returns:
trueif creating fake data is allowed
-
getSnapshotUserId
java.lang.String getSnapshotUserId()
Get the ID of the user historic snapshots are taken for.- Returns:
- The user ID to create report snapshots for
-
enforceSnapshotUser
boolean enforceSnapshotUser()
Determines if snapshots are always taken for the user specified bygetSnapshotUserId(), or if this user only works as a fallback if the user that finished the report is not available anymore.- Returns:
trueif the user specified bygetSnapshotUserId()is enforced for taking snapshots
-
-