public class OslcAttachmentHandler
extends java.lang.Object
Constructor and Description |
---|
OslcAttachmentHandler(java.lang.String osName,
OslcResourceDetailInfo docLinkResDetInfo) |
Modifier and Type | Method and Description |
---|---|
long |
createAttachments(MXLogger logger,
java.lang.String wwwURL,
java.lang.String documentName,
java.lang.String description,
java.lang.String docType,
MboSetRemote doclinkSet,
java.lang.String urlType,
byte[] data,
java.lang.String externalId,
java.lang.String txid) |
java.lang.String |
getAttachmentFileName(MXLogger logger,
java.lang.String directory,
java.lang.String fileName)
Create unique file name for attachment.
|
void |
updateAttachments(MXLogger logger,
MboRemote mbo,
byte[] data) |
public OslcAttachmentHandler(java.lang.String osName, OslcResourceDetailInfo docLinkResDetInfo)
public void updateAttachments(MXLogger logger, MboRemote mbo, byte[] data) throws MXException, java.io.IOException
MXException
java.io.IOException
public long createAttachments(MXLogger logger, java.lang.String wwwURL, java.lang.String documentName, java.lang.String description, java.lang.String docType, MboSetRemote doclinkSet, java.lang.String urlType, byte[] data, java.lang.String externalId, java.lang.String txid) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getAttachmentFileName(MXLogger logger, java.lang.String directory, java.lang.String fileName) throws MXException, java.rmi.RemoteException
directory
- Give attachment directory name.fileName
- Give original file nameMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exception