com.ibm.xsp.model.domino.wrapped
Class DominoDocument.AttachmentValueHolder

java.lang.Object
  extended by com.ibm.xsp.model.domino.wrapped.DominoDocument.AttachmentValueHolder
All Implemented Interfaces:
FileRowData, java.io.Serializable
Enclosing class:
DominoDocument

public static class DominoDocument.AttachmentValueHolder
extends java.lang.Object
implements java.io.Serializable, FileRowData

Stores information about an attachment to a field and the operation performed on that attachment.

See Also:
Serialized Form

Field Summary
static int STATE_ADDED
           
static int STATE_INDOCUMENT
           
static int STATE_NOTINDOCUMENT
           
static int STATE_REMOVED
           
 
Constructor Summary
DominoDocument.AttachmentValueHolder(javax.faces.context.FacesContext context, DominoDocument doc, DominoRichTextItem item, lotus.domino.EmbeddedObject obj, java.lang.String displayName, java.lang.String embeddedObjectKey)
          Construct a value holder that points to an existing object in the database.
DominoDocument.AttachmentValueHolder(javax.faces.context.FacesContext context, com.ibm.xsp.persistence.PersistedContent pc, DominoDocument doc, DominoRichTextItem item, java.lang.String source, long fileSize)
          Construct a value holder that points to an existing MIME object in the database.
DominoDocument.AttachmentValueHolder(javax.faces.context.FacesContext context, com.ibm.xsp.persistence.PersistedContent pc, UIFileuploadEx.UploadedFile uploadedFile)
          Construct a value holder that points to an object within the persistence service.
DominoDocument.AttachmentValueHolder(javax.faces.context.FacesContext context, com.ibm.xsp.persistence.PersistedContent pc, UIInputRichText.EmbeddedImage embeddedImage)
          Construct a value holder that points to an object within the persistence service.
 
Method Summary
 java.lang.String getAttDisplayName()
           
 java.lang.String getAttName()
           
 java.lang.String getCID()
           
 long getCreated()
          Returns the time that the file was created.
 java.lang.String getDbKey()
           
 java.lang.String getHref()
          Returns the context-relative url to retrieve the file.
 long getLastModified()
          Returns the time that the file was last modified.
 long getLength()
          Returns the length of the file.
 java.lang.String getName()
          Returns the name of the file.
 java.lang.String getPersistentName()
           
 int getState()
           
 java.lang.String getType()
          Returns the type of the file.
 void setCID(java.lang.String cid)
           
 void setPersistentName(com.ibm.xsp.persistence.PersistedContent pc)
           
 void setState(int state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_INDOCUMENT

public static final int STATE_INDOCUMENT
See Also:
Constant Field Values

STATE_ADDED

public static final int STATE_ADDED
See Also:
Constant Field Values

STATE_REMOVED

public static final int STATE_REMOVED
See Also:
Constant Field Values

STATE_NOTINDOCUMENT

public static final int STATE_NOTINDOCUMENT
See Also:
Constant Field Values
Constructor Detail

DominoDocument.AttachmentValueHolder

public DominoDocument.AttachmentValueHolder(javax.faces.context.FacesContext context,
                                            com.ibm.xsp.persistence.PersistedContent pc,
                                            UIFileuploadEx.UploadedFile uploadedFile)
                                     throws lotus.domino.NotesException
Construct a value holder that points to an object within the persistence service.

Throws:
lotus.domino.NotesException

DominoDocument.AttachmentValueHolder

public DominoDocument.AttachmentValueHolder(javax.faces.context.FacesContext context,
                                            com.ibm.xsp.persistence.PersistedContent pc,
                                            UIInputRichText.EmbeddedImage embeddedImage)
                                     throws lotus.domino.NotesException
Construct a value holder that points to an object within the persistence service.

Throws:
lotus.domino.NotesException

DominoDocument.AttachmentValueHolder

public DominoDocument.AttachmentValueHolder(javax.faces.context.FacesContext context,
                                            DominoDocument doc,
                                            DominoRichTextItem item,
                                            lotus.domino.EmbeddedObject obj,
                                            java.lang.String displayName,
                                            java.lang.String embeddedObjectKey)
                                     throws lotus.domino.NotesException
Construct a value holder that points to an existing object in the database.

Throws:
lotus.domino.NotesException

DominoDocument.AttachmentValueHolder

public DominoDocument.AttachmentValueHolder(javax.faces.context.FacesContext context,
                                            com.ibm.xsp.persistence.PersistedContent pc,
                                            DominoDocument doc,
                                            DominoRichTextItem item,
                                            java.lang.String source,
                                            long fileSize)
                                     throws lotus.domino.NotesException
Construct a value holder that points to an existing MIME object in the database.

Throws:
lotus.domino.NotesException
Method Detail

getCID

public java.lang.String getCID()

setCID

public void setCID(java.lang.String cid)

getPersistentName

public java.lang.String getPersistentName()

getAttName

public java.lang.String getAttName()

getAttDisplayName

public java.lang.String getAttDisplayName()

getState

public int getState()

setState

public void setState(int state)

setPersistentName

public void setPersistentName(com.ibm.xsp.persistence.PersistedContent pc)

getDbKey

public java.lang.String getDbKey()

getName

public java.lang.String getName()
Description copied from interface: FileRowData
Returns the name of the file.

Specified by:
getName in interface FileRowData
Returns:
The name of the file

getHref

public java.lang.String getHref()
Description copied from interface: FileRowData
Returns the context-relative url to retrieve the file.

Specified by:
getHref in interface FileRowData
Returns:
The context-relative url to retrieve the file

getLastModified

public long getLastModified()
Description copied from interface: FileRowData
Returns the time that the file was last modified.

Specified by:
getLastModified in interface FileRowData
Returns:
A long value representing the time the file was last modified, measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970)

getCreated

public long getCreated()
Description copied from interface: FileRowData
Returns the time that the file was created.

Specified by:
getCreated in interface FileRowData
Returns:
A long value representing the time the file was created, measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970)

getLength

public long getLength()
Description copied from interface: FileRowData
Returns the length of the file.

Specified by:
getLength in interface FileRowData
Returns:
The length, in bytes, of the file

getType

public java.lang.String getType()
Description copied from interface: FileRowData
Returns the type of the file.

Specified by:
getType in interface FileRowData
Returns:
The type of the file