org.jasig.portlet.cms.model
Class Attachment

java.lang.Object
  extended by org.jcrom.JcrFile
      extended by org.jasig.portlet.cms.model.Attachment
All Implemented Interfaces:
Serializable

public class Attachment
extends org.jcrom.JcrFile

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jcrom.JcrFile
dataProvider, mimeType, name, path
 
Constructor Summary
Attachment()
           
 
Method Summary
 boolean equals(Object obj)
           
static Attachment fromFile(String fileName, String contentType, Date lastModified, Locale lc, byte[] contents)
           
 byte[] getContents()
           
 String getEncoding()
           
 String getFileName()
           
 Calendar getLastModified()
           
 String getMimeType()
           
 String getName()
           
 int hashCode()
           
 void setContents(byte[] contents)
           
 void setEncoding(String encoding)
           
 void setFileName(String fileName)
           
 void setLastModified(Calendar lastModified)
           
 void setMimeType(String mimeType)
           
 String toString()
           
 
Methods inherited from class org.jcrom.JcrFile
fromFile, getDataProvider, getPath, setDataProvider, setName, setPath
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment()
Method Detail

fromFile

public static Attachment fromFile(String fileName,
                                  String contentType,
                                  Date lastModified,
                                  Locale lc,
                                  byte[] contents)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getContents

public byte[] getContents()

getEncoding

public String getEncoding()
Overrides:
getEncoding in class org.jcrom.JcrFile

getFileName

public String getFileName()

getLastModified

public Calendar getLastModified()
Overrides:
getLastModified in class org.jcrom.JcrFile

getMimeType

public String getMimeType()
Overrides:
getMimeType in class org.jcrom.JcrFile

getName

public String getName()
Overrides:
getName in class org.jcrom.JcrFile

hashCode

public int hashCode()
Overrides:
hashCode in class Object

setContents

public void setContents(byte[] contents)

setEncoding

public void setEncoding(String encoding)
Overrides:
setEncoding in class org.jcrom.JcrFile

setFileName

public void setFileName(String fileName)

setLastModified

public void setLastModified(Calendar lastModified)
Overrides:
setLastModified in class org.jcrom.JcrFile

setMimeType

public void setMimeType(String mimeType)
Overrides:
setMimeType in class org.jcrom.JcrFile

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 uPortal Jasig Community. All Rights Reserved.