public class UploadedJarInfoImpl extends java.lang.Object implements UploadedJarInfo, InternalDataContainer, java.io.Serializable
Constructor and Description |
---|
UploadedJarInfoImpl(ConfigService configService, java.lang.String session) |
Modifier and Type | Method and Description |
---|---|
ImportPlan |
getDefaultImportPlan()
Returns the default import plan for the importing jar.
|
java.util.Map<Ref,Diagnostics> |
getFailedResources()
Returns a mapping from resources that failed to import to diagnostics describing the failure.
|
ProductInfo |
getProductInfo()
Returns information about the product which is the origin of this jar
|
java.util.Map<Ref,UploadedResourceInfo> |
getResourceInfos()
Returns information about individual resources in the jar file
|
boolean |
isEncrypted(java.util.Collection<Ref> refs, boolean recursive)
Returns true if importing the given references will require a passphrase because either the indicated resources are encrypted, or they depend on another resource that has encrypted data.
|
boolean |
isProjectLevelExport()
Returns whether the jar file was exported at the project level.
|
void |
removeInternalData(Sanitizer s) |
boolean |
supportsIncludeDependencies()
Returns true if jar file contains dependency information about the resources that was injected at the time of export.
|
public UploadedJarInfoImpl(ConfigService configService, java.lang.String session) throws NotFoundException
NotFoundException
public boolean isProjectLevelExport()
UploadedJarInfo
isProjectLevelExport
in interface UploadedJarInfo
public java.util.Map<Ref,UploadedResourceInfo> getResourceInfos()
UploadedJarInfo
getResourceInfos
in interface UploadedJarInfo
public java.util.Map<Ref,Diagnostics> getFailedResources()
UploadedJarInfo
getFailedResources
in interface UploadedJarInfo
public ProductInfo getProductInfo()
UploadedJarInfo
getProductInfo
in interface UploadedJarInfo
public ImportPlan getDefaultImportPlan()
UploadedJarInfo
getDefaultImportPlan
in interface UploadedJarInfo
public boolean supportsIncludeDependencies()
UploadedJarInfo
supportsIncludeDependencies
in interface UploadedJarInfo
public void removeInternalData(Sanitizer s)
removeInternalData
in interface InternalDataContainer
public boolean isEncrypted(java.util.Collection<Ref> refs, boolean recursive)
isEncrypted
in interface UploadedJarInfo
refs
- the references to resources in the uploaded jar filerecursive
- if false only given references are inspected. if recursive, their dependencies are inspected (recursively) as well