Package io.jans.configapi.service.auth
Class AssetService
- java.lang.Object
-
- io.jans.configapi.service.auth.AssetService
-
@ApplicationScoped public class AssetService extends Object
-
-
Constructor Summary
Constructors Constructor Description AssetService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.jans.service.document.store.model.Document
getAssetByInum(String inum)
List<io.jans.service.document.store.model.Document>
getAssetByName(String name)
List<io.jans.configapi.model.configuration.AssetDirMapping>
getAssetDirMapping()
io.jans.configapi.model.configuration.AssetMgtConfiguration
getAssetMgtConfiguration()
String
getDnForAsset(String inum)
List<String>
getValidFileExtension()
List<String>
getValidModuleName()
String
loadServiceAsset(String serviceName)
InputStream
readDocumentAsStream(io.jans.service.document.store.model.Document asset)
boolean
removeAsset(String inum)
io.jans.service.document.store.model.Document
saveAsset(io.jans.service.document.store.model.Document asset, InputStream documentStream, boolean isUpdate)
io.jans.orm.model.PagedResult<io.jans.service.document.store.model.Document>
searchAsset(io.jans.model.SearchRequest searchRequest, String status)
io.jans.orm.model.PagedResult<io.jans.service.document.store.model.Document>
searchAssetByName(io.jans.model.SearchRequest searchRequest)
-
-
-
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
-
loadServiceAsset
public String loadServiceAsset(String serviceName) throws Exception
- Throws:
Exception
-
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)
-
-