public class PolicyArchive extends Archive
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_EXTENSION |
CONFIGS, data, DESCRIPTION_DEFAULT_PROPERTY, ENV_SETTINGS_STORE, ENVIRONMENT_MANIFEST_FILE, environmentStoreTypes, ID_DEFAULT_PROPERTY, MANIFEST_DIR, MANIFEST_FILE, NAME_DEFAULT_PROPERTY, POLICY_MANIFEST_FILE, policyStoreTypes, rootProperties, TIMESTAMP_DEFAULT_PROPERTY, VERSION_DEFAULT_PROPERTY, VERSIONCOMMENT_DEFAULT_PROPERTY
Constructor and Description |
---|
PolicyArchive() |
PolicyArchive(DeploymentArchive deploymentArchive)
Create a Policy Archive from a Deployment Archive.
|
PolicyArchive(java.io.File archiveDirOrArchiveFile)
Generate the PolicyArchive off a file or directory on disk.
|
PolicyArchive(java.io.File archiveDirOrArchiveFile,
boolean createFromFedExtractDir)
Generate the PolicyArchive off a file or directory on disk.
|
PolicyArchive(java.io.File entityStoreDir,
java.util.Map<java.lang.String,java.lang.String> policyRootProperties)
Create the policy archive from:-
a directory that contains the entity store files for the policy archive
in-memory map of root properties
|
PolicyArchive(java.io.InputStream is)
Create archive from stream.
|
PolicyArchive(java.lang.String archiveDirOrArchiveFilename)
Generate the PolicyArchive off a file or directory on disk.
|
PolicyArchive(java.lang.String archiveDirOrArchiveFilename,
boolean createFromFedExtractDir)
Generate the PolicyArchive off a file or directory on disk.
|
PolicyArchive(java.lang.String entityStoreDirname,
java.util.Map<java.lang.String,java.lang.String> policyRootProperties)
Create the policy archive from:-
a directory that contains the entity store files for the policy archive
in-memory map of root properties
|
PolicyArchive(java.net.URL url)
Generate the PolicyArchive from a URL e.g.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileExtension()
Get the file extension for the archive, i.e.
|
protected void |
refreshArchiveData(java.util.Map<java.lang.String,byte[]> idDirContents)
This function takes the in-memory data and resets the archive data.
|
addBytesToArchive, addEntityStoreFilesFromDirToArchive, addEntityStoreFilesFromDirToArchive, addEntityStoreFilesToArchive, addEntityStoreFilesToArchive, addFileToArchive, addManifestToArchive, addStoreMD5, copyManifestToProperties, copyRootPropertiesAndSetNewDefaultProps, createNewManifest, extractContentToDir, extractContentToDir, extractContentToDir, generateRootProperties, getConfigurationAssemblyFile, getData, getDefaultProperties, getDefaultProperties, getDirectoryContentsFromArchive, getEmptyDefaultProperties, getEntityStore, getFileContentsFromArchive, getId, getManifestFromArchive, getMergedStoreManager, getReadOnlyProperties, getRootManifestFromArchive, getRootProperties, isReadOnlyProperty, loadArchiveDataFromFile, loadArchiveDataFromStream, loadEnvironmentManifestFromDir, loadPolicyManifestFromDir, loadRootManifestFromDir, refreshArchiveData, setData, setRootProperties, updateRootProperties, writeToArchiveFile, writeToArchiveFile
public static final java.lang.String FILE_EXTENSION
public PolicyArchive()
public PolicyArchive(java.net.URL url) throws java.io.IOException, EntityStoreException
file:/c:/temp/archive.pol
.url
- The urljava.io.IOException
EntityStoreException
public PolicyArchive(java.lang.String archiveDirOrArchiveFilename) throws java.io.IOException, EntityStoreException
archiveDirOrArchiveFile
- The file or directory with .pol file contents on diskjava.io.IOException
EntityStoreException
public PolicyArchive(java.lang.String archiveDirOrArchiveFilename, boolean createFromFedExtractDir) throws java.io.IOException, EntityStoreException
archiveDirOrArchiveFile
- The file or directory with .pol file contents on diskcreateFromFedExtractDir
- If true, and we are loading from a directory, the
directory must have full .fed file content (not .pol file content).java.io.IOException
EntityStoreException
public PolicyArchive(java.io.File archiveDirOrArchiveFile) throws java.io.IOException, EntityStoreException
archiveDirOrArchiveFile
- The file or directory with .pol file contents on diskjava.io.IOException
EntityStoreException
public PolicyArchive(java.io.File archiveDirOrArchiveFile, boolean createFromFedExtractDir) throws java.io.IOException, EntityStoreException
archiveDirOrArchiveFile
- The file or directory with .pol file contents on diskcreateFromFedExtractDir
- If true, and we are loading from a directory, the
directory must have full .fed file content (not .pol file content).java.io.IOException
EntityStoreException
public PolicyArchive(java.lang.String entityStoreDirname, java.util.Map<java.lang.String,java.lang.String> policyRootProperties) throws java.io.IOException, EntityStoreException
entityStoreDirname
- Directory containing entity store filesrootProperties
- Map of root propertiesjava.io.IOException
EntityStoreException
public PolicyArchive(java.io.File entityStoreDir, java.util.Map<java.lang.String,java.lang.String> policyRootProperties) throws java.io.IOException, EntityStoreException
entityStoreDir
- Directory containing entity store filespolicyRootProperties
- Map of root propertiesjava.io.IOException
EntityStoreException
public PolicyArchive(java.io.InputStream is) throws java.io.IOException
is
- The streamjava.io.IOException
public PolicyArchive(DeploymentArchive deploymentArchive) throws java.io.IOException, EntityStoreException
deploymentArchive
- The deployment archiveIOException,
- EntityStoreExceptionjava.io.IOException
EntityStoreException
protected void refreshArchiveData(java.util.Map<java.lang.String,byte[]> idDirContents) throws java.io.IOException
refreshArchiveData
in class Archive
java.io.IOException
public java.lang.String getFileExtension()
Archive
getFileExtension
in class Archive
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel