public class ReportTemplate
extends uk.ac.ed.epcc.webapp.model.data.DataObject
implements uk.ac.ed.epcc.webapp.model.data.Retirable
| Constructor and Description |
|---|
ReportTemplate(uk.ac.ed.epcc.webapp.model.data.Repository.Record res) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRetire() |
boolean |
canUse(uk.ac.ed.epcc.webapp.session.SessionService user) |
static uk.ac.ed.epcc.webapp.jdbc.table.TableSpecification |
getDefaultTableSpecification(uk.ac.ed.epcc.webapp.AppContext c) |
java.lang.String |
getIdentifier(int max) |
java.lang.String |
getReportDescription() |
java.lang.String |
getReportName() |
java.lang.String |
getTemplateName() |
boolean |
hasError(uk.ac.ed.epcc.webapp.session.SessionService user)
Check if there is an error in the report
additional checks may be made depending on the role of
the user.
|
void |
retire() |
addToMap, addToMap, addToMap, commit, delete, empty, equals, formUpdate, getContext, getFactoryTag, getID, getIdentifier, getLogger, getMap, getRecord, getRecord, getRecord, getSQLContext, getUniqueIdName, hashCode, post_commit, postCreate, pre_commit, release, setContents, setDirty, setMap, toStringpublic ReportTemplate(uk.ac.ed.epcc.webapp.model.data.Repository.Record res)
public boolean canUse(uk.ac.ed.epcc.webapp.session.SessionService user)
public boolean hasError(uk.ac.ed.epcc.webapp.session.SessionService user)
user - public java.lang.String getReportName()
public java.lang.String getReportDescription()
public java.lang.String getTemplateName()
public static uk.ac.ed.epcc.webapp.jdbc.table.TableSpecification getDefaultTableSpecification(uk.ac.ed.epcc.webapp.AppContext c)
public java.lang.String getIdentifier(int max)
getIdentifier in interface uk.ac.ed.epcc.webapp.forms.IdentifiedgetIdentifier in class uk.ac.ed.epcc.webapp.model.data.DataObjectpublic boolean canRetire()
canRetire in interface uk.ac.ed.epcc.webapp.model.data.Retirablepublic void retire()
throws java.lang.Exception
retire in interface uk.ac.ed.epcc.webapp.model.data.Retirablejava.lang.Exception