Package com.day.cq.reporting
Interface ConfigService
-
public interface ConfigService
This interface defines a configuration service for the reporting framework.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.int
getFirstDayOfWeek()
Get the first day of a week (using the constants provided byCalendar
).java.lang.Integer
getHourOfDay()
Get the hour of day daily snapshots are taken.java.util.Locale
getLocale()
Get the locale to be used for reportingjava.lang.Integer
getMaxRows()
Get the maximum number of rows persisted per snapshot.java.lang.Integer
getMinuteOfHour()
Get the minute of hour hourly snapshots are takenjava.lang.String
getReportPath()
Get the base path for reports.java.lang.String
getSnapshots()
Get the base path for snapshot data.java.lang.String
getSnapshotUserId()
Get the ID of the user historic snapshots are taken for.java.util.TimeZone
getTimeZone()
Get the timezone to be used for any timebased calculationboolean
isFakeCreateAllowed()
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 withadmin
session.- Returns:
true
if 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:
true
if the user specified bygetSnapshotUserId()
is enforced for taking snapshots
-
-