org.jbpm.task
Class Attachment
java.lang.Object
org.jbpm.task.Attachment
- All Implemented Interfaces:
- Externalizable, Serializable
@Entity
public class Attachment
- extends Object
- implements Externalizable
- See Also:
- Serialized Form
Attachment
public Attachment()
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
getId
public Long getId()
setId
public void setId(long id)
getName
public String getName()
setName
public void setName(String name)
getAccessType
public AccessType getAccessType()
setAccessType
public void setAccessType(AccessType accessType)
getContentType
public String getContentType()
setContentType
public void setContentType(String contentType)
getAttachedAt
public Date getAttachedAt()
setAttachedAt
public void setAttachedAt(Date attachedAt)
getAttachedBy
public User getAttachedBy()
setAttachedBy
public void setAttachedBy(User attachedBy)
getSize
public int getSize()
setContent
public void setContent(Content content)
- Sets the content for this attachment, i.e. the size and the attachmentContentId.
- Parameters:
content
- attachment content
setSize
public void setSize(int size)
getAttachmentContentId
public long getAttachmentContentId()
setAttachmentContentId
public void setAttachmentContentId(long contentId)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.