|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.util.i18n.AbstractI18NBean
com.silverpeas.util.i18n.AbstractBean
org.silverpeas.importExport.attachment.AttachmentDetail
public final class AttachmentDetail
Class declaration
Field Summary | |
---|---|
static String |
ATTACHMENTS_FOLDER
|
static int |
GROUP_DIR
|
static int |
GROUP_DUMMY
|
static int |
GROUP_FILE
|
static int |
GROUP_FILE_LINK
|
static int |
GROUP_HTML_LINK
|
static String |
IMPORT_UPDATE_RULE_ADD
|
static String |
IMPORT_UPDATE_RULE_REPLACE
|
Constructor Summary | |
---|---|
AttachmentDetail()
Constructor |
|
AttachmentDetail(AttachmentPK attachPK)
Constructors |
|
AttachmentDetail(AttachmentPK attachPK,
String physicalName,
String logicalName,
String description,
String type,
long size,
String context,
Date creationDate,
WAPrimaryKey foreignKey)
|
|
AttachmentDetail(AttachmentPK attachPK,
String physicalName,
String logicalName,
String description,
String type,
long size,
String context,
Date creationDate,
WAPrimaryKey foreignKey,
String author)
Constructor |
|
AttachmentDetail(AttachmentPK attachPK,
String physicalName,
String logicalName,
String description,
String type,
long size,
String context,
Date creationDate,
WAPrimaryKey foreignKey,
String author,
String title)
|
|
AttachmentDetail(AttachmentPK attachPK,
String physicalName,
String logicalName,
String description,
String type,
long size,
String context,
Date creationDate,
WAPrimaryKey foreignKey,
String title,
String info,
int orderNum)
|
|
AttachmentDetail(WAPrimaryKey foreignKey)
Constructor |
Method Summary | |
---|---|
void |
checkMimeType()
if type is known as application/octet-stream, try to find right mimeType |
Object |
clone()
|
boolean |
equals(Object arg0)
|
int |
getAttachmentGroup()
Retourne le group auquel appartient l'attachment. |
String |
getAttachmentPath()
Return the path to the attachment file. |
String |
getAuthor()
|
String |
getCloneId()
|
String |
getContext()
Method declaration |
Date |
getCreationDate()
Methode declaration |
String |
getExtension()
|
WAPrimaryKey |
getForeignKey()
Method declaration |
String |
getImportUpdateRule()
|
String |
getInfo()
|
String |
getInstanceId()
|
protected String |
getLanguage(String language)
|
String |
getLogicalName()
Method declaration |
int |
getOrderNum()
|
String |
getOriginalPath()
|
String |
getPhysicalName()
Method declaration |
AttachmentPK |
getPK()
the getters and setters |
long |
getSize()
Method declaration |
String |
getTitle()
|
String |
getType()
Method declaration |
String |
getWorkerId()
Get the current user who's working on the document |
String |
getXmlForm()
|
XMLModelContentType |
getXMLModelContentType()
|
int |
hashCode()
|
boolean |
isOfficeDocument()
Deprecated. Use isOpenOfficeCompatible instead as Ms Office is no longer a special case. |
boolean |
isOpenOfficeCompatible()
Check if the attachment is compatible with OpenOffice using the mime type . |
boolean |
isRemoveAfterImport()
|
boolean |
isSpinfireDocument()
|
void |
setAuthor(String author)
|
void |
setCloneId(String cloneId)
|
void |
setContext(String context)
Method declaration |
void |
setCreationDate(Date creationDate)
Methode declaration |
void |
setForeignKey(WAPrimaryKey foreignKey)
Method declaration |
void |
setImportUpdateRule(String updateRule)
|
void |
setInfo(String info)
|
void |
setInstanceId(String instanceId)
|
void |
setLogicalName(String logicalName)
Method declaration |
void |
setOrderNum(int orderNum)
|
void |
setOriginalPath(String originalPath)
|
void |
setPhysicalName(String physicalName)
Method declaration |
void |
setPK(AttachmentPK pk)
Method declaration |
void |
setRemoveAfterImport(boolean removeAfterImport)
|
void |
setSize(long size)
Method declaration |
void |
setTitle(String title)
|
void |
setType(String type)
|
void |
setWorkerId(String workerId)
Set the use who's working on the document |
void |
setXmlForm(String xmlForm)
|
Methods inherited from class com.silverpeas.util.i18n.AbstractBean |
---|
getDescription, getLanguages, getName |
Methods inherited from class com.silverpeas.util.i18n.AbstractI18NBean |
---|
addTranslation, getClonedTranslations, getDescription, getLanguage, getLanguageToDisplay, getName, getNextTranslation, getTranslation, getTranslationId, getTranslations, isRemoveTranslation, setDescription, setLanguage, setName, setRemoveTranslation, setTranslationId, setTranslations, setTranslations, setTranslations |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ATTACHMENTS_FOLDER
public static final transient int GROUP_FILE
public static final transient int GROUP_FILE_LINK
public static final transient int GROUP_HTML_LINK
public static final transient int GROUP_DIR
public static final transient int GROUP_DUMMY
public static final String IMPORT_UPDATE_RULE_ADD
public static final String IMPORT_UPDATE_RULE_REPLACE
Constructor Detail |
---|
public AttachmentDetail()
public AttachmentDetail(WAPrimaryKey foreignKey)
foreignKey
- : type WAPrimaryKey: the key of custumer objectpublic AttachmentDetail(AttachmentPK attachPK, String physicalName, String logicalName, String description, String type, long size, String context, Date creationDate, WAPrimaryKey foreignKey, String author)
attachPK
- : type AttachmentPK: the primary key of AttachmentDetaillogicalName
- :type String: the name filephysicalName
- : type String: the name file stored in the serverdescription
- : type String: the description of file, size=4000 charactertype
- : type String: the mime type of filesize
- the size of the file.context
- : type String: the context or the file is recordedcreationDate
- : type Date: the date where the file was addedforeignKey
- : type WAPrimaryKey: the key of custumer objectauthor
- the creator of the attechment.public AttachmentDetail(AttachmentPK attachPK, String physicalName, String logicalName, String description, String type, long size, String context, Date creationDate, WAPrimaryKey foreignKey)
public AttachmentDetail(AttachmentPK attachPK, String physicalName, String logicalName, String description, String type, long size, String context, Date creationDate, WAPrimaryKey foreignKey, String title, String info, int orderNum)
public AttachmentDetail(AttachmentPK attachPK, String physicalName, String logicalName, String description, String type, long size, String context, Date creationDate, WAPrimaryKey foreignKey, String author, String title)
attachPK
- : type AttachmentPK: the primary key of AttachmentDetaillogicalName
- :type String: the name filephysicalName
- : type String: the name file stored in the serverdescription
- : type String: the description of file, size=4000 charactertype
- : type String: the mime type of filecontext
- : type String: the context or the file is recordedcreationDate
- : type Date: the date where the file was addedforeignKey
- : type WAPrimaryKey: the key of custumer objectauthor
- title
- public AttachmentDetail(AttachmentPK attachPK)
attachPK
- , the primary key of AttachmentDetailAttachmentPK
Method Detail |
---|
public String getCloneId()
public void setCloneId(String cloneId)
public AttachmentPK getPK()
public void setPK(AttachmentPK pk)
pk
-
public String getPhysicalName()
public void setPhysicalName(String physicalName)
physicalName
-
public String getLogicalName()
public void setLogicalName(String logicalName)
logicalName
-
public String getType()
public void setType(String type)
type
- public long getSize()
public void setSize(long size)
size
-
public Date getCreationDate()
public void setCreationDate(Date creationDate)
creationDate
-
public void setContext(String context)
context
-
public String getContext()
public void setForeignKey(WAPrimaryKey foreignKey)
foreignKey
-
public WAPrimaryKey getForeignKey()
public void setAuthor(String author)
public String getAuthor()
public void setTitle(String title)
public String getTitle()
public void setInfo(String info)
public String getInfo()
public void setOrderNum(int orderNum)
public int getOrderNum()
public void setInstanceId(String instanceId)
public String getInstanceId()
public void setWorkerId(String workerId)
workerId
- public String getWorkerId()
public int getAttachmentGroup()
protected String getLanguage(String language)
public String getAttachmentPath()
public boolean isOpenOfficeCompatible()
@Deprecated public boolean isOfficeDocument()
public boolean isSpinfireDocument()
public String getExtension()
public Object clone()
clone
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object arg0)
equals
in class Object
public String getImportUpdateRule()
public void setImportUpdateRule(String updateRule)
public void checkMimeType()
public String getXmlForm()
public void setXmlForm(String xmlForm)
public XMLModelContentType getXMLModelContentType()
public boolean isRemoveAfterImport()
public void setRemoveAfterImport(boolean removeAfterImport)
public void setOriginalPath(String originalPath)
public String getOriginalPath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |