Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-03


oracle.security.jps.tools.utility
Interface JpsUtilDeploymentIfc


public interface JpsUtilDeploymentIfc

This interface exposes methods for Deployment related actions


Method Summary
 void migrateAppPolicyToFarmLevelPolicyStore(java.io.InputStream is, boolean overwriteMergeFlag, java.lang.String dstAppName)
          Method to migrate Application specific policy from a FileInputStream to farm level policy store.
 void migrateAppPolicyToFarmLevelPolicyStore(java.io.InputStream is, boolean overwriteMergeFlag, java.lang.String srcAppName, java.lang.String dstAppName)
          Method to migrate application specific policy from an InputStream to farm level policy store.
 void migrateCodePolicyToFarmLevelPolicyStore(java.io.InputStream is)
          Method to migrate codebase policy from an InputStream to farm level policy store.
 void setConfigParameter(java.util.Map params)
          This api can be used to set the config parameters to be used during migration 1.

 

Method Detail

migrateAppPolicyToFarmLevelPolicyStore

void migrateAppPolicyToFarmLevelPolicyStore(java.io.InputStream is,
                                            boolean overwriteMergeFlag,
                                            java.lang.String srcAppName,
                                            java.lang.String dstAppName)
                                            throws JpsException
Method to migrate application specific policy from an InputStream to farm level policy store.
Parameters:
is - Input Stream from an xml file containing the policies for an application in Policy Store schema.
overwriteMergeFlag - Flag to indicate conflit resolution policy. if true policies are deleted freom the policy store and written afresh, if false policies are merged into the existing policies
srcAppName - Application name as in the input stream
dstAppName - Application stripe as it has to appear in the policy store.
Throws:
JpsException - thrown if migration tool fails to migrate the policy

migrateAppPolicyToFarmLevelPolicyStore

void migrateAppPolicyToFarmLevelPolicyStore(java.io.InputStream is,
                                            boolean overwriteMergeFlag,
                                            java.lang.String dstAppName)
                                            throws JpsException
Method to migrate Application specific policy from a FileInputStream to farm level policy store.
Parameters:
is - File Input Stream from an xml file containing the policies for an application in Policy Store schema. The file should have exactly one application configured. If more than one application is found, JpsException is thrown. If No application is configured, PolicyObjectNotFoundException is thrown.
overwriteMergeFlag - Flag to indicate conflit resolution policy. if true policies are deleted from the policy store and written afresh, if false policies are merged into the existing policies
dstAppName - Application stripe as it has to appear in the policy store.
Throws:
JpsException - thrown if migration tool not able to create source store or destination store

migrateCodePolicyToFarmLevelPolicyStore

void migrateCodePolicyToFarmLevelPolicyStore(java.io.InputStream is)
                                             throws JpsException
Method to migrate codebase policy from an InputStream to farm level policy store.
Parameters:
is - Input Stream from an xml file containing the policies for an application in Policy Store schema
Throws:
JpsException - thrown if migration tool fails to migrate the policy

setConfigParameter

void setConfigParameter(java.util.Map params)
This api can be used to set the config parameters to be used during migration 1. JpsUtilEnv.CONVERT_GRANT_PRINCIPALS "convertGrantPrincipals" - a parameter to enable/disable principal validation; 2. JpsUtilEnv.OPERATION_MIGRATE_ID_STORE_MAPPING "migrateIdStoreMapping" - turn on the switch for migration of only application policies then the key can be passed to turn the funtionality ON/OFF.
Parameters:
params - - config params to be used during migration

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-03


Copyright © 2010, Oracle. All rights reserved.