|
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_Media
org.compiere.model.MMedia
public class MMedia
Web Media Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_CM_Media |
|---|
accessLevel, MEDIATYPE_AD_Reference_ID, MEDIATYPE_ApplicationPdf, MEDIATYPE_ImageGif, MEDIATYPE_ImageJpeg, MEDIATYPE_ImagePng, MEDIATYPE_TextCss, MEDIATYPE_TextJs, MEDIATYPE_TextXml, 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 | |
|---|---|
MMedia(Ctx ctx,
int CM_Media_ID,
String trxName)
Standard Constructor |
|
MMedia(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 |
beforeDelete()
Executed before Delete operation. |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
int |
getAD_Tree_ID()
Get AD_Tree_ID |
Timestamp |
getAttachmentUpdated()
Get Updated timestamp of Attachment |
static MMedia |
getByName(Ctx ctx,
String Name,
int CM_WebProject_Id,
String trxName)
get Container by Name |
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 |
static MMedia[] |
getMediaToDeploy(Ctx ctx,
int CM_Media_Server_ID,
String trxName)
Get Media to deploy |
MWebProject |
getWebProject()
Get Web Project |
String |
toString()
Return String representation |
| Methods inherited from class org.compiere.model.X_CM_Media |
|---|
get_AccessLevel, getAD_Image_ID, getCM_Media_ID, getCM_WebProject_ID, getContentText, getDescription, getDirectDeploy, getHelp, getKeyNamePair, getMediaType, getName, initPO, isMediaTypeValid, isSummary, setAD_Image_ID, setCM_Media_ID, setCM_WebProject_ID, setContentText, setDescription, setDirectDeploy, setHelp, setIsSummary, setMediaType, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MMedia(Ctx ctx,
int CM_Media_ID,
String trxName)
ctx - contextCM_Media_ID - idtrxName - transaction
public MMedia(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static MMedia[] getMedia(MWebProject project)
project -
public static MMedia[] getMediaToDeploy(Ctx ctx,
int CM_Media_Server_ID,
String trxName)
ctx - Corresponding ContextCM_Media_Server_ID - Identify ServertrxName - Transaction ID
public static MMedia getByName(Ctx ctx,
String Name,
int CM_WebProject_Id,
String trxName)
ctx - Name - CM_WebProject_Id - trxName -
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
public String toString()
toString in class X_CM_MediaX_CM_Media.toString()protected boolean beforeDelete()
PO
beforeDelete in class POprotected 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()
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||