|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.PO
org.compiere.model.X_CM_Template
org.compiere.model.MTemplate
public class MTemplate
Web Template Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_CM_Template |
|---|
accessLevel, Model, Table_ID, Table_Name, updatedMS |
| Fields inherited from class org.compiere.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MTemplate(Ctx ctx,
int CM_Template_ID,
String trxName)
Standard Constructor |
|
MTemplate(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
afterDelete(boolean success)
After Delete |
protected boolean |
afterSave(boolean newRecord,
boolean success)
After Save. |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
static MTemplate |
get(Ctx ctx,
int CM_Template_ID,
String trxName)
Get MTemplate from Cache |
int |
getAD_Tree_ID()
Get AD_Tree_ID |
MAd[] |
getAds()
Get's all the Ads from Template AD Cat (including all subtemplates) |
static MTemplate |
getByName(Ctx ctx,
String name,
int projectID,
String trxName)
get Template by Name |
StringBuffer |
getPreBuildTemplate()
Get the Template we prebuild (this means with added subtemplates) |
MWebProject |
getWebProject()
Get Web Project |
boolean |
isNews(boolean includeSub)
Check for isNews if needed including subtemplates |
boolean |
isRequest(boolean includeSub)
Check whether we need to include Request data |
boolean |
isUseAd(boolean includeSub)
Check for isUseAd if needed including subtemplates |
void |
rebuildTemplate()
Prebuild Template, this also set's parameters of subtemplates on the main template |
| Methods inherited from class org.compiere.model.X_CM_Template |
|---|
get_AccessLevel, getCM_Template_ID, getCM_WebProject_ID, getDescription, getElements, getHelp, getKeyNamePair, getName, getTemplateXST, getValue, initPO, isInclude, isNews, isProcessing, isSummary, isUseAd, isValid, setCM_Template_ID, setCM_WebProject_ID, setDescription, setElements, setHelp, setIsInclude, setIsNews, setIsSummary, setIsUseAd, setIsValid, setName, setProcessing, setTemplateXST, setValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MTemplate(Ctx ctx,
int CM_Template_ID,
String trxName)
ctx - contextCM_Template_ID - idtrxName - transaction
public MTemplate(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static MTemplate get(Ctx ctx,
int CM_Template_ID,
String trxName)
ctx - contextCM_Template_ID - idtrxName - Transaction
public static MTemplate getByName(Ctx ctx,
String name,
int projectID,
String trxName)
ctx - name - projectID - trxName -
public MWebProject getWebProject()
public int getAD_Tree_ID()
public boolean isUseAd(boolean includeSub)
includeSub -
public boolean isNews(boolean includeSub)
includeSub -
public boolean isRequest(boolean includeSub)
includeSub -
public StringBuffer getPreBuildTemplate()
public void rebuildTemplate()
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - insertsuccess - save success
protected boolean afterDelete(boolean success)
afterDelete in class POsuccess -
public MAd[] getAds()
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||