|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.core.objects.DcObject
net.datacrow.core.objects.DcTemplate
public class DcTemplate
A template can be applied on new items.
Field Summary | |
---|---|
static int |
_SYS_DEFAULT
|
static int |
_SYS_TEMPLATENAME
|
Fields inherited from class net.datacrow.core.objects.DcObject |
---|
_ID, _SYS_AVAILABLE, _SYS_CONTAINER, _SYS_CREATED, _SYS_DISPLAYVALUE, _SYS_EXTERNAL_REFERENCES, _SYS_FILEHASH, _SYS_FILEHASHTYPE, _SYS_FILENAME, _SYS_FILESIZE, _SYS_LENDBY, _SYS_LOANDAYSTILLOVERDUE, _SYS_LOANDUEDATE, _SYS_LOANDURATION, _SYS_MODIFIED, _SYS_MODULE, _SYS_SERVICE, _SYS_SERVICEURL, _VALUE, children |
Constructor Summary | |
---|---|
DcTemplate(int module,
int parent)
Creates a new instance. |
Method Summary | |
---|---|
protected void |
beforeSave()
Actions to be performed before saving the object. |
void |
checkIntegrity()
Checks the integrity of the item. |
int |
getParentModule()
The module which uses the template. |
java.lang.String |
getTemplateName()
The name of the template _SYS_TEMPLATENAME |
boolean |
isDefault()
Indicates if this is the default template. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int _SYS_TEMPLATENAME
public static final int _SYS_DEFAULT
Constructor Detail |
---|
public DcTemplate(int module, int parent)
module
- The index of its module.parent
- The module by which the template will be used.Method Detail |
---|
public java.lang.String getTemplateName()
_SYS_TEMPLATENAME
public boolean isDefault()
protected void beforeSave() throws ValidationException
DcObject
beforeSave
in class DcObject
ValidationException
public int getParentModule()
public java.lang.String toString()
toString
in class DcObject
public void checkIntegrity() throws ValidationException
DcObject
checkIntegrity
in class DcObject
ValidationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |