Package com.soffid.iam.bpm.attachment
Class AbstractAttachmentManager
- java.lang.Object
-
- com.soffid.iam.bpm.attachment.AbstractAttachmentManager
-
- Direct Known Subclasses:
AbstractAttachmentManager,AttachmentManager
public abstract class AbstractAttachmentManager extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractAttachmentManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidattach(String tag, DocumentReference documentReference)voidattach(String tag, DocumentService document)DocumentServicecreateDocument(String contentType, String originalName)voideliminarArchivo(String tag)DocumentServicegetDocument(String tag)DocumentReferencegetReference(String tag)ListgetTags()protected abstract ObjectgetVariable(String key)protected abstract SetgetVariables()protected abstract voidputVariable(String key, Object value)protected abstract voidremoveVariable(String key)voiduploadFile(InputStream stream, String contentType, String originalName, String tag)
-
-
-
Field Detail
-
PREFIX
protected static final String PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
removeVariable
protected abstract void removeVariable(String key)
-
getVariables
protected abstract Set getVariables()
-
uploadFile
public void uploadFile(InputStream stream, String contentType, String originalName, String tag) throws IOException, NamingException, javax.ejb.CreateException, DocumentBeanException, InterruptedException, DocumentBeanException, BPMException, InternalErrorException, javax.ejb.EJBException, javax.ejb.RemoveException
- Throws:
IOExceptionNamingExceptionjavax.ejb.CreateExceptionDocumentBeanExceptionInterruptedExceptionBPMExceptionInternalErrorExceptionjavax.ejb.EJBExceptionjavax.ejb.RemoveException
-
attach
public void attach(String tag, DocumentService document) throws RemoteException, InternalErrorException
-
attach
public void attach(String tag, DocumentReference documentReference) throws RemoteException, InternalErrorException
-
createDocument
public DocumentService createDocument(String contentType, String originalName) throws IOException, NamingException, javax.ejb.CreateException, DocumentBeanException, InterruptedException, DocumentBeanException, BPMException, InternalErrorException
- Throws:
IOExceptionNamingExceptionjavax.ejb.CreateExceptionDocumentBeanExceptionInterruptedExceptionBPMExceptionInternalErrorException
-
getReference
public DocumentReference getReference(String tag)
-
getTags
public List getTags()
-
getDocument
public DocumentService getDocument(String tag) throws NamingException, RemoteException, javax.ejb.CreateException, InternalErrorException
- Throws:
NamingExceptionRemoteExceptionjavax.ejb.CreateExceptionInternalErrorException
-
-