Class AssetService


  • @ApplicationScoped
    public class AssetService
    extends Object
    • Constructor Detail

      • AssetService

        public AssetService()
    • Method Detail

      • searchAsset

        public io.jans.orm.model.PagedResult<io.jans.service.document.store.model.Document> searchAsset​(io.jans.model.SearchRequest searchRequest,
                                                                                                        String status)
                                                                                                 throws Exception
        Throws:
        Exception
      • getAssetByInum

        public io.jans.service.document.store.model.Document getAssetByInum​(String inum)
                                                                     throws Exception
        Throws:
        Exception
      • getAssetByName

        public List<io.jans.service.document.store.model.Document> getAssetByName​(String name)
                                                                           throws Exception
        Throws:
        Exception
      • searchAssetByName

        public io.jans.orm.model.PagedResult<io.jans.service.document.store.model.Document> searchAssetByName​(io.jans.model.SearchRequest searchRequest)
                                                                                                       throws Exception
        Throws:
        Exception
      • saveAsset

        public io.jans.service.document.store.model.Document saveAsset​(io.jans.service.document.store.model.Document asset,
                                                                       InputStream documentStream,
                                                                       boolean isUpdate)
                                                                throws Exception
        Throws:
        Exception
      • getValidModuleName

        public List<String> getValidModuleName()
      • getValidFileExtension

        public List<String> getValidFileExtension()
      • getAssetMgtConfiguration

        public io.jans.configapi.model.configuration.AssetMgtConfiguration getAssetMgtConfiguration()
      • getAssetDirMapping

        public List<io.jans.configapi.model.configuration.AssetDirMapping> getAssetDirMapping()
      • readDocumentAsStream

        public InputStream readDocumentAsStream​(io.jans.service.document.store.model.Document asset)