public class EnvironmentSettings
extends java.lang.Object
| Constructor and Description |
|---|
EnvironmentSettings(com.vordel.es.EntityStore store)
Create an EnvironmentSettings from an entity store.
|
| Modifier and Type | Method and Description |
|---|---|
com.vordel.es.Entity |
addEnviromentSetting(com.vordel.es.Entity entity, java.lang.String fieldname, int index)
Add a new environmentalized field for an entity.
|
java.util.Map<com.vordel.es.ESPK,com.vordel.es.Entity> |
applyEnvironmentSpecificValues()
Apply the environment values in the env group settings component store to the store, i.e.
|
com.vordel.es.ESPK |
findEnvironmentalizedEntity(com.vordel.es.Entity entity)
Find an EnvironmentalizedEntity relating to an Entity in the entity store.
|
java.lang.String |
getDisplayNameForPPK(com.vordel.es.ESPK pk)
Used by promotion script to display user-friendly identifier for a string portable ESPK
|
java.lang.String |
getDisplayNameForPPK(java.lang.String ppk)
Used by promotion script to display user-friendly identifier for a string portable ESPK
|
com.vordel.es.ESPK |
getEnvironmentalizedEntitiesPk(com.vordel.es.EntityStore store)
Get the PK of the EnvironmentalizedEntities in the entiity store.
|
java.lang.Object |
getEnvironmentSettingValue(com.vordel.es.Entity envFieldEntity)
Called by promotion script/Policy Studio when an existing environment-specific value must be displayed to user so they can decide to override or not.
|
java.lang.String |
getEnvironmentSettingValueAsString(com.vordel.es.Entity envFieldEntity)
Called by promotion script when an existing environment-specific value must be displayed to user so they can decide to override or not.
|
EnvironmentalizedEntities |
getEnvSettings()
Get the environmentalized settings.
|
com.vordel.common.crypto.PasswordCipher |
getPasswordCipher()
Get the password cipher
|
java.util.List<com.vordel.es.ESPK> |
getPossibleESPKValuesForReference(com.vordel.es.Entity entityToEnvironmentalize, com.vordel.es.Entity envFieldEntity)
Used by promotion script to get a list of portable ESPKs that may be used as values for references, e.g.
|
java.util.List<java.lang.String> |
getPossibleStringValuesForReference(com.vordel.es.Entity entityToEnvironmentalize, com.vordel.es.Entity envFieldEntity)
Used by promotion script to get a list of portable ESPKs (as strings) that may be used as values for references, e.g.
|
java.lang.String |
getReferenceType(com.vordel.es.Entity entityToEnvironmentalize, com.vordel.es.Entity envFieldEntity) |
com.vordel.es.EntityStore |
getStore()
Get the entity store.
|
boolean |
hasEnvironmentSetting(com.vordel.es.Entity entity, java.lang.String fieldname, int index)
Determines whether an environmentalized field already exists.
|
java.util.Map<com.vordel.es.Entity,java.util.Collection<com.vordel.es.Entity>> |
interpretEnvSettingsForStore()
Generate a map with a key that is an entity in the server's main entity store, and the value is a list of EnvironmentalizedField entities in the env settings component store that apply to that entity in the server's main entity store.
|
boolean |
isReferenceField(com.vordel.es.Entity entityToEnvironmentalize, com.vordel.es.Entity envFieldEntity)
Returns true if the EnvironmentalizedField refers to a reference field in the server entity store.
|
void |
mergeTemplateEnvSettings(com.vordel.es.EntityStore policyArchiveStore)
Used by
DeploymentArchive constructor that takes a PolicyArchive and EnvironmentArchive as parameters. |
void |
removeEnviromentalizedEntity(com.vordel.es.Entity envEntity)
Remove all env settings for a particular entity.
|
void |
removeEnviromentSetting(com.vordel.es.Entity entity, java.lang.String fieldname, int index)
Removes an environmentalized field from an entity.
|
void |
removeEnvSettingValues()
This method removes the values from the EnvSettingsStore.
|
void |
setEnvironmentSettingValue(com.vordel.es.Entity envFieldEntity, java.lang.Object value)
Called by promotion script/Policy Studio when an environment-specific value entered by user must be saved to the EnvSettingsStore.xml.
|
void |
setEnvironmentSettingValueAsString(com.vordel.es.Entity envFieldEntity, java.lang.String value)
Called by promotion script when an environment-specific value entered by user must be saved to the EnvSettingsStore.xml.
|
void |
setPassphrase(java.lang.String passphrase)
Set the passphrase for encrypting data in EnvGroupSettings.xml entity store.
|
void |
upgrade()
This method is run *after* an upgrade has completed.
|
public EnvironmentSettings(com.vordel.es.EntityStore store)
throws com.vordel.es.EntityStoreException
store - The federated entity store containing the EnvSettingsStore.xml entity store, or in some cases the EnvSettingsStore.xml entity storecom.vordel.es.EntityStoreExceptionpublic com.vordel.es.EntityStore getStore()
public void setPassphrase(java.lang.String passphrase)
passphrase - The passphrasepublic com.vordel.common.crypto.PasswordCipher getPasswordCipher()
public com.vordel.es.Entity addEnviromentSetting(com.vordel.es.Entity entity,
java.lang.String fieldname,
int index)
throws com.vordel.es.EntityStoreException
entity - The entity that we are adding an environmentalized field tofieldname - The field name of the field in the entity being environmentalizedindex - The index of the field being environmentalized. For multi-valued fields this may be > 0com.vordel.es.EntityStoreException
public void removeEnviromentSetting(com.vordel.es.Entity entity,
java.lang.String fieldname,
int index)
throws com.vordel.es.EntityStoreException
entity - The entity that we are removing the environmentalized field fromfieldname - The field name of the field in the entity we no longer wish to environmetalizeindex - The index of the field. For multi-valued fields this may be > 0com.vordel.es.EntityStoreException
public boolean hasEnvironmentSetting(com.vordel.es.Entity entity,
java.lang.String fieldname,
int index)
throws com.vordel.es.EntityStoreException
entity - The entity whose field we want to checkfieldname - The field name of the entity we want to checkcom.vordel.es.EntityStoreException
public void mergeTemplateEnvSettings(com.vordel.es.EntityStore policyArchiveStore)
throws java.io.IOException,
com.vordel.es.EntityStoreException
DeploymentArchive constructor that takes a PolicyArchive and EnvironmentArchive as parameters. Used by Configuration Studio/script at promotion time when a user opens a v2.pol file (new from downstream) and a v1.env file (from last deployment in current environment). The EnvSettingsStore.xml in the store wrapped by this class is merged with the one in the policyArchiveStore as follows:-
policyArchiveStore - The federated store from the policy archive.java.io.IOExceptioncom.vordel.es.EntityStoreException
public void removeEnvSettingValues()
throws com.vordel.es.EntityStoreException
java.io.IOExceptioncom.vordel.es.EntityStoreException
public java.util.Map<com.vordel.es.ESPK,com.vordel.es.Entity> applyEnvironmentSpecificValues()
throws com.vordel.es.EntityStoreException
com.vordel.es.EntityStoreException
public java.util.Map<com.vordel.es.Entity,java.util.Collection<com.vordel.es.Entity>> interpretEnvSettingsForStore()
throws com.vordel.es.EntityStoreException
com.vordel.es.EntityStoreException
public java.lang.String getEnvironmentSettingValueAsString(com.vordel.es.Entity envFieldEntity)
throws com.vordel.es.EntityStoreException,
java.security.GeneralSecurityException
envFieldEntity - The EnvironmentalizedField entity in the EnvSettingsStore.xml that holds the field whose value we are getting.com.vordel.es.EntityStoreExceptionjava.security.GeneralSecurityException
public java.lang.Object getEnvironmentSettingValue(com.vordel.es.Entity envFieldEntity)
throws com.vordel.es.EntityStoreException,
java.security.GeneralSecurityException
envFieldEntity - The EnvironmentalizedField entity in the EnvSettingsStore.xml that holds the field whose value we are getting.com.vordel.es.EntityStoreExceptionjava.security.GeneralSecurityException
public void setEnvironmentSettingValueAsString(com.vordel.es.Entity envFieldEntity,
java.lang.String value)
throws com.vordel.es.EntityStoreException,
java.security.GeneralSecurityException
envFieldEntity - The EnvironmentalizedField entity in the EnvSettingsStore.xml that holds the field whose value we are setting.value - The value to setcom.vordel.es.EntityStoreExceptionjava.security.GeneralSecurityException
public void setEnvironmentSettingValue(com.vordel.es.Entity envFieldEntity,
java.lang.Object value)
throws com.vordel.es.EntityStoreException,
java.security.GeneralSecurityException
envFieldEntity - The EnvironmentalizedField entity in the EnvSettingsStore.xml that holds the field whose value we are setting.value - The value to setcom.vordel.es.EntityStoreExceptionjava.security.GeneralSecurityException
public boolean isReferenceField(com.vordel.es.Entity entityToEnvironmentalize,
com.vordel.es.Entity envFieldEntity)
entityToEnvironmentalize - The entity that is being environmentalized in main server config.envFieldEntity - The EnvironmentalizedField entity in the EnvSettingsStore.xml that holds the env-specific value.
public java.lang.String getReferenceType(com.vordel.es.Entity entityToEnvironmentalize,
com.vordel.es.Entity envFieldEntity)
public java.util.List<com.vordel.es.ESPK> getPossibleESPKValuesForReference(com.vordel.es.Entity entityToEnvironmentalize,
com.vordel.es.Entity envFieldEntity)
throws com.vordel.es.EntityStoreException
entityToEnvironmentalize - The entity that is being environmentalized in main server config.envFieldEntity - The EnvironmentalizedField entity in the EnvSettingsStore.xml that holds the env-specific value.com.vordel.es.EntityStoreException
public java.util.List<java.lang.String> getPossibleStringValuesForReference(com.vordel.es.Entity entityToEnvironmentalize,
com.vordel.es.Entity envFieldEntity)
throws com.vordel.es.EntityStoreException
entityToEnvironmentalize - The entity that is being environmentalized in main server config.envFieldEntity - The EnvironmentalizedField entity in the EnvSettingsStore.xml that holds the env-specific value.com.vordel.es.EntityStoreException
public java.lang.String getDisplayNameForPPK(java.lang.String ppk)
throws com.vordel.es.EntityStoreException
ppk - string portable ESPKcom.vordel.es.EntityStoreException
public java.lang.String getDisplayNameForPPK(com.vordel.es.ESPK pk)
throws com.vordel.es.EntityStoreException
pk - The ESPKcom.vordel.es.EntityStoreExceptionpublic EnvironmentalizedEntities getEnvSettings() throws com.vordel.es.EntityStoreException
com.vordel.es.EntityStoreException
public void upgrade()
throws com.vordel.es.EntityStoreException,
java.security.GeneralSecurityException
com.vordel.es.EntityStoreExceptionjava.security.GeneralSecurityException
public void removeEnviromentalizedEntity(com.vordel.es.Entity envEntity)
throws com.vordel.es.EntityStoreException
envEntity - The EnvironmentalizedEntity to removecom.vordel.es.EntityStoreException
public com.vordel.es.ESPK getEnvironmentalizedEntitiesPk(com.vordel.es.EntityStore store)
throws com.vordel.es.EntityStoreException
store - The entity storecom.vordel.es.EntityStoreException
public com.vordel.es.ESPK findEnvironmentalizedEntity(com.vordel.es.Entity entity)
throws com.vordel.es.EntityStoreException
entity - The entitycom.vordel.es.EntityStoreException
This documentation and all its contents and graphics, copyright � 1999 - 2011 Vordel