|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.dbtools.DBRecord<RT> org.opengts.db.AccountRecord<ReportJob> org.opengts.extra.tables.ReportJob
public class ReportJob
Nested Class Summary | |
---|---|
static class |
ReportJob.IntervalTag
IntervalTag class |
static class |
ReportJob.Key
|
Nested classes/interfaces inherited from class org.opengts.db.AccountRecord |
---|
AccountRecord.AccountKey<RT extends DBRecord> |
Nested classes/interfaces inherited from class org.opengts.dbtools.DBRecord |
---|
DBRecord.DBChangeListener |
Field Summary | |
---|---|
static java.lang.String |
_TABLE_NAME
|
static java.lang.String |
CRONTAG_DAILY
|
static java.lang.String |
CRONTAG_NONE
|
static java.lang.String |
CRONTAG_WEEKLY
|
static java.lang.String |
FLD_deviceID
|
static java.lang.String |
FLD_groupID
|
static java.lang.String |
FLD_intervalTag
|
static java.lang.String |
FLD_lastReportTime
|
static java.lang.String |
FLD_recipients
|
static java.lang.String |
FLD_reportFormat
|
static java.lang.String |
FLD_reportJobID
|
static java.lang.String |
FLD_reportName
|
static java.lang.String |
FLD_reportOption
|
static java.lang.String |
FLD_reportTimeFrom
|
static java.lang.String |
FLD_reportTimeTo
|
Fields inherited from class org.opengts.db.AccountRecord |
---|
FLD_accountID, FLD_displayName, FLD_isActive, FLD_notes |
Fields inherited from class org.opengts.dbtools.DBRecord |
---|
errorDescription, excludedUpdateFields, FLD_creationMillis, FLD_creationTime, FLD_description, FLD_lastUpdateAccount, FLD_lastUpdateTime, FLD_lastUpdateUser, hasError, ID_SIZE, isValidating, lastSQLException, NOTIFY_GROUP, PSEUDO_FIELD_CHAR, tempProps |
Constructor Summary | |
---|---|
ReportJob()
|
|
ReportJob(ReportJob.Key key)
|
Method Summary | |
---|---|
static void |
AddIntervalTag(ReportJob.IntervalTag tagInt)
Adds the specified IntervalTag to the cached tag map |
static void |
AddIntervalTag(java.lang.String tagID,
I18N.Text desc,
java.lang.String frTime,
java.lang.String toTime)
Adds the interval tag attributes to the cached tag map. Called from ReportFactory while parsing "ReportJobs" tag. See "reports.xml", "ReportJobs" tag for list of defined tags. |
static void |
AddIntervalTag(java.lang.String tagID,
java.lang.String desc,
java.lang.String frTime,
java.lang.String toTime)
Adds the interval tag attributes to the cached tag map. |
java.lang.String |
createGTSRequest_Report(Account A,
User U)
Returns an XML formated Report "GTSRequest" (long form) |
static java.lang.String |
createGTSRequest_Report(Account A,
User U,
java.util.Collection<java.lang.String> rptJobIDs)
Returns an XML formated Report "GTSRequest" (short form) |
static java.lang.String |
createGTSRequest_Report(Account A,
User U,
java.lang.String cronTags)
Returns an XML formated Report "GTSRequest" (short form) |
static ReportJob |
createNewReportJob(Account account,
java.lang.String reportJobID)
Creates the specified ReportJob, and returns an instance to the record |
static int |
cron(java.lang.String[] argv)
|
static boolean |
exists(java.lang.String accountID,
java.lang.String reportJobID)
Returns true if the specified ReportJob exists |
java.lang.String |
getDeviceID()
Gets the assigned report Device-ID |
static DBFactory<ReportJob> |
getFactory()
|
java.lang.String |
getGroupID()
Gets the assigned report Group-ID |
java.lang.String |
getIntervalTag()
Gets the reporting interval tag |
static java.lang.String |
GetIntervalTagDescription(java.lang.String tagID,
java.util.Locale locale)
Returns the localized description for the specified interval tag-id |
static java.util.Map<java.lang.String,ReportJob.IntervalTag> |
GetIntervalTagMap()
Returns the IntervalTag map |
long |
getLastReportTime()
Gets the time of the last generated report |
java.lang.String |
getRecipients()
Gets the list of email recipients |
java.lang.String |
getReportFormat()
Gets the report format |
java.lang.String |
getReportFormat(java.lang.String dft)
Gets the report format |
static ReportJob |
getReportJob(Account account,
java.lang.String reportJobID)
Gets the specified ReportJob instance |
static ReportJob |
getReportJob(Account account,
java.lang.String reportJobID,
boolean createOK)
Gets the specified ReportJob instance |
java.lang.String |
getReportJobID()
Gets the report ID for this entry |
static OrderedSet<java.lang.String> |
getReportJobIDsForAccount(java.lang.String accountID,
boolean activeOnly)
Gets a list of ReportJob IDs for the specified Account |
static OrderedSet<java.lang.String> |
getReportJobIDsForAccount(java.lang.String accountID,
java.lang.String tagID,
boolean activeOnly)
Gets a list of ReportJob IDs for the specified Account |
static OrderedSet<java.lang.String> |
getReportJobIDsForAccount(java.lang.String accountID,
java.lang.String tagID,
boolean activeOnly,
long limit)
Gets a list of ReportJob IDs for the specified Account |
static OrderedSet<java.lang.String> |
getReportJobIDsForAccount(java.lang.String accountID,
java.lang.String tagIDs,
boolean activeOnly,
long limit,
DBRecordHandler<ReportJob> handler)
Gets a list of ReportJob IDs for the specified Account |
static ReportJob[] |
getReportJobsForAccount(java.lang.String accountID)
Gets a list of ReportJob instances for the specified Account |
static ReportJob[] |
getReportJobsForAccount(java.lang.String accountID,
long limit,
DBRecordHandler<ReportJob> handler)
Gets a list of ReportJob instances for the specified Account |
java.lang.String |
getReportName()
Gets the report name (as defined in 'reports.xml') |
java.lang.String |
getReportOption()
Gets the assigned report options |
java.lang.String |
getReportTimeFrom()
Gets the Report "From" time. |
java.lang.String |
getReportTimeTo()
Gets the Report "To" time. |
static java.lang.String |
getTableDescription(java.util.Locale loc)
|
static boolean |
HasIntervalTagID(java.lang.String tagID)
Returns true if the specified tagID is defined |
boolean |
hasReportName()
Returns true if a report name is defined |
static void |
main(java.lang.String[] argv)
|
void |
setCreationDefaultValues()
Override to set default values |
void |
setDeviceID(java.lang.String v)
Sets the assigned report Device-ID |
void |
setGroupID(java.lang.String v)
Sets the assigned report Group-ID |
void |
setIntervalTag(java.lang.String v)
Sets the reporting interval |
void |
setLastReportTime(long v)
Sets the time of the last generated report |
void |
setRecipients(java.lang.String v)
Sets the list of email recipients |
void |
setReportFormat(java.lang.String v)
Gets the report format |
void |
setReportJobID(java.lang.String v)
Sets the report ID for this entry |
void |
setReportName(java.lang.String v)
Sets the report name (as defined in 'reports.xml') |
void |
setReportOption(java.lang.String v)
Sets the assigned report options |
void |
setReportTimeFrom(java.lang.String v)
Sets the Report "From" time. |
void |
setReportTimeTo(java.lang.String v)
Sets the Report "To" time. |
static java.lang.String |
TABLE_NAME()
|
java.lang.String |
toString()
Returns a String representation of instance |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CRONTAG_NONE
public static final java.lang.String CRONTAG_DAILY
public static final java.lang.String CRONTAG_WEEKLY
public static final java.lang.String _TABLE_NAME
public static final java.lang.String FLD_reportJobID
public static final java.lang.String FLD_reportName
public static final java.lang.String FLD_reportOption
public static final java.lang.String FLD_deviceID
public static final java.lang.String FLD_groupID
public static final java.lang.String FLD_reportTimeFrom
public static final java.lang.String FLD_reportTimeTo
public static final java.lang.String FLD_reportFormat
public static final java.lang.String FLD_recipients
public static final java.lang.String FLD_intervalTag
public static final java.lang.String FLD_lastReportTime
Constructor Detail |
---|
public ReportJob()
public ReportJob(ReportJob.Key key)
Method Detail |
---|
public static java.util.Map<java.lang.String,ReportJob.IntervalTag> GetIntervalTagMap()
public static boolean HasIntervalTagID(java.lang.String tagID)
public static void AddIntervalTag(ReportJob.IntervalTag tagInt)
public static void AddIntervalTag(java.lang.String tagID, I18N.Text desc, java.lang.String frTime, java.lang.String toTime)
public static void AddIntervalTag(java.lang.String tagID, java.lang.String desc, java.lang.String frTime, java.lang.String toTime)
public static java.lang.String GetIntervalTagDescription(java.lang.String tagID, java.util.Locale locale)
tagID
- The Tag-idlocale
- The language locale
public static java.lang.String TABLE_NAME()
public static DBFactory<ReportJob> getFactory()
public static java.lang.String getTableDescription(java.util.Locale loc)
public java.lang.String getReportJobID()
public void setReportJobID(java.lang.String v)
public java.lang.String getReportName()
public void setReportName(java.lang.String v)
public boolean hasReportName()
public java.lang.String getReportOption()
public void setReportOption(java.lang.String v)
public java.lang.String getDeviceID()
public void setDeviceID(java.lang.String v)
public java.lang.String getGroupID()
public void setGroupID(java.lang.String v)
public java.lang.String getReportTimeFrom()
public void setReportTimeFrom(java.lang.String v)
public java.lang.String getReportTimeTo()
public void setReportTimeTo(java.lang.String v)
public java.lang.String getReportFormat()
public java.lang.String getReportFormat(java.lang.String dft)
public void setReportFormat(java.lang.String v)
public java.lang.String getRecipients()
public void setRecipients(java.lang.String v)
public java.lang.String getIntervalTag()
public void setIntervalTag(java.lang.String v)
public long getLastReportTime()
public void setLastReportTime(long v)
public java.lang.String toString()
toString
in class DBRecord<ReportJob>
public void setCreationDefaultValues()
setCreationDefaultValues
in class DBRecord<ReportJob>
public static ReportJob[] getReportJobsForAccount(java.lang.String accountID) throws DBException
DBException
public static ReportJob[] getReportJobsForAccount(java.lang.String accountID, long limit, DBRecordHandler<ReportJob> handler) throws DBException
DBException
public static OrderedSet<java.lang.String> getReportJobIDsForAccount(java.lang.String accountID, boolean activeOnly) throws DBException
DBException
public static OrderedSet<java.lang.String> getReportJobIDsForAccount(java.lang.String accountID, java.lang.String tagID, boolean activeOnly) throws DBException
DBException
public static OrderedSet<java.lang.String> getReportJobIDsForAccount(java.lang.String accountID, java.lang.String tagID, boolean activeOnly, long limit) throws DBException
DBException
public static OrderedSet<java.lang.String> getReportJobIDsForAccount(java.lang.String accountID, java.lang.String tagIDs, boolean activeOnly, long limit, DBRecordHandler<ReportJob> handler) throws DBException
DBException
public static boolean exists(java.lang.String accountID, java.lang.String reportJobID) throws DBException
DBException
public static ReportJob getReportJob(Account account, java.lang.String reportJobID, boolean createOK) throws DBException
DBException
public static ReportJob getReportJob(Account account, java.lang.String reportJobID) throws DBException
DBException
public static ReportJob createNewReportJob(Account account, java.lang.String reportJobID) throws DBException
DBException
public java.lang.String createGTSRequest_Report(Account A, User U)
public static java.lang.String createGTSRequest_Report(Account A, User U, java.lang.String cronTags)
public static java.lang.String createGTSRequest_Report(Account A, User U, java.util.Collection<java.lang.String> rptJobIDs)
public static int cron(java.lang.String[] argv)
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |