org.exoplatform.calendar.service
Class Attachment

java.lang.Object
  extended by org.exoplatform.calendar.service.Attachment

public class Attachment
extends Object

Created by The eXo Platform SARL Author : Pham Tuan tuan.pham@exoplatform.com Sep 28, 2007


Constructor Summary
Attachment()
          This class use for keep data and infomation about attachments the id will automatic generate when create new object
 
Method Summary
 String getDataPath()
           
 String getId()
           
 InputStream getInputStream()
           
 Calendar getLastModified()
           
 String getMimeType()
           
 String getName()
           
 String getResourceId()
          get id to call download service remove temp file
 long getSize()
           
 String getWorkspace()
           
 void setId(String id)
           
 void setInputStream(InputStream input)
           
 void setLastModified(Calendar lastModified)
           
 void setMimeType(String mimeType_)
           
 void setName(String name_)
           
 void setResourceId(String resourceId)
          keep id to make sure temp file will be removed after use uploaded file
 void setSize(long size_)
           
 void setWorkspace(String workspace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment()
This class use for keep data and infomation about attachments the id will automatic generate when create new object

Method Detail

getId

public String getId()

setId

public void setId(String id)

getMimeType

public String getMimeType()

setMimeType

public void setMimeType(String mimeType_)

getSize

public long getSize()

setSize

public void setSize(long size_)

getName

public String getName()

setName

public void setName(String name_)

getDataPath

public String getDataPath()
                   throws Exception
Throws:
Exception

setInputStream

public void setInputStream(InputStream input)
                    throws Exception
Throws:
Exception

getInputStream

public InputStream getInputStream()
                           throws Exception
Throws:
Exception

setLastModified

public void setLastModified(Calendar lastModified)

getLastModified

public Calendar getLastModified()

setWorkspace

public void setWorkspace(String workspace)

getWorkspace

public String getWorkspace()

setResourceId

public void setResourceId(String resourceId)
keep id to make sure temp file will be removed after use uploaded file


getResourceId

public String getResourceId()
get id to call download service remove temp file



Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.