|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.PO
org.compiere.model.X_CM_Media
org.compiere.model.MMedia
public class MMedia
Web Media Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_CM_Media |
|---|
MEDIATYPE_AD_Reference_ID, MEDIATYPE_ApplicationPdf, MEDIATYPE_ImageGif, MEDIATYPE_ImageJpeg, MEDIATYPE_ImagePng, MEDIATYPE_TextCss, MEDIATYPE_TextJs |
| Fields inherited from class org.compiere.model.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Fields inherited from interface org.compiere.model.I_CM_Media |
|---|
accessLevel, COLUMNNAME_AD_Image_ID, COLUMNNAME_CM_Media_ID, COLUMNNAME_CM_WebProject_ID, COLUMNNAME_ContentText, COLUMNNAME_Description, COLUMNNAME_DirectDeploy, COLUMNNAME_Help, COLUMNNAME_IsSummary, COLUMNNAME_MediaType, COLUMNNAME_Name, Model, Table_ID, Table_Name |
| Constructor Summary | |
|---|---|
MMedia(Properties ctx,
int CM_Media_ID,
String trxName)
Standard Constructor |
|
MMedia(Properties 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 |
int |
getAD_Tree_ID()
Get AD_Tree_ID |
Timestamp |
getAttachmentUpdated()
Get Updated timestamp of Attachment |
byte[] |
getData()
Get Data as byte array |
String |
getExtension()
Get Extension with . |
String |
getFileName()
Get File Name |
MImage |
getImage()
Get Image |
InputStream |
getInputStream()
Get Input Stream |
static MMedia[] |
getMedia(MWebProject project)
Get Media |
MWebProject |
getWebProject()
Get Web Project |
| Methods inherited from class org.compiere.model.X_CM_Media |
|---|
get_AccessLevel, getAD_Image_ID, getCM_Media_ID, getCM_WebProject_ID, getCM_WebProject, getContentText, getDescription, getDirectDeploy, getHelp, getKeyNamePair, getMediaType, getName, initPO, isSummary, setAD_Image_ID, setCM_Media_ID, setCM_WebProject_ID, setContentText, setDescription, setDirectDeploy, setHelp, setIsSummary, setMediaType, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MMedia(Properties ctx,
int CM_Media_ID,
String trxName)
ctx - contextCM_Media_ID - idtrxName - transaction
public MMedia(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static MMedia[] getMedia(MWebProject project)
project -
public MWebProject getWebProject()
public int getAD_Tree_ID()
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 String getFileName()
public String getExtension()
public MImage getImage()
public byte[] getData()
public InputStream getInputStream()
public Timestamp getAttachmentUpdated()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||