com.ibm.tivoli.maximo.oslc.provider

Class AttachmentStorage

  • java.lang.Object
    • com.ibm.tivoli.maximo.oslc.provider.AttachmentStorage
    • Constructor Detail

      • AttachmentStorage

        public AttachmentStorage()
    • Method Detail

      • setAllowedExtsSet

        public static void setAllowedExtsSet(java.util.Set allowedExtsSet1)
      • isPrintable

        public static boolean isPrintable(java.lang.String fileExt)
      • isAllowedType

        public static boolean isAllowedType(java.lang.String fileExtension)
      • getAttachmentQualifiedName

        public abstract java.lang.String getAttachmentQualifiedName(MboRemote doclink,
                                                                    java.lang.String name)
                                                             throws java.rmi.RemoteException,
                                                                    MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • createAttachment

        public abstract void createAttachment(java.lang.String name,
                                              byte[] data,
                                              java.lang.String mimeType)
                                       throws java.rmi.RemoteException,
                                              MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • deleteAttachment

        public abstract void deleteAttachment(MboRemote doclink)
                                       throws java.rmi.RemoteException,
                                              MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getAttachment

        public abstract byte[] getAttachment(MboRemote doclink)
                                      throws java.rmi.RemoteException,
                                             MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getAttachment

        public abstract byte[] getAttachment(java.lang.String urlName)
                                      throws java.rmi.RemoteException,
                                             MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • streamAttachment

        public abstract java.io.InputStream streamAttachment(MboRemote doclink)
                                                      throws java.rmi.RemoteException,
                                                             MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • setupStorage

        public abstract void setupStorage()
                                   throws java.rmi.RemoteException,
                                          MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • cleanupStorage

        public abstract void cleanupStorage()
                                     throws java.rmi.RemoteException,
                                            MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getAttachmentSize

        public long getAttachmentSize(MboRemote doclink)
                               throws java.rmi.RemoteException,
                                      MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • isDefaultAttachmentStore

        public static boolean isDefaultAttachmentStore()
      • isAttachmentNeedsCustomDatasource

        public abstract boolean isAttachmentNeedsCustomDatasource(java.lang.String urlName)
      • getAttachmentDatasource

        public abstract javax.activation.DataSource getAttachmentDatasource(java.lang.String urlName)
      • validateFileName

        protected void validateFileName(MXLogger logger,
                                        java.lang.String fileName)
                                 throws MXException,
                                        java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException