Deploys a package to a domain.
void deployPackage(String fileName, DEPLOY_MODE deployMode, String securityConfiguration, Collection<RoleMappingVO> roleMappings, Map<String, String> endpointMappings) throws SUPAdminException;
If successful, returns silently. If unsuccessful, returns SUPAdminException.
Collection<RoleMappingVO> roleMappingVOs = new ArrayList<RoleMappingVO>(); RoleMappingVO rmvo1 = new RoleMappingVO(); rmvo1.setSourceRole("Role1"); rmvo1.setRoleMappingType(ROLE_MAPPING_TYPE.AUTO); RoleMappingVO rmvo2 = new RoleMappingVO(); rmvo2.setSourceRole("Role2"); rmvo2.setRoleMappingType(ROLE_MAPPING_TYPE.AUTO); RoleMappingVO rmvo3 = new RoleMappingVO(); rmvo3.setSourceRole("Role3"); rmvo3.setRoleMappingType(ROLE_MAPPING_TYPE.AUTO); roleMappingVOs.add(rmvo1); roleMappingVOs.add(rmvo2); roleMappingVOs.add(rmvo3); Map<String, String> endpointMappings = new HashMap<String, String>(); endpointMappings.put("sampledb", "sampledb2"); supDomain.deployPackage("<deployment unit file name>", DEPLOY_MODE.UPDATE, "<security configuration name>", roleMappingVOs, endpointMappings);