com.metamatrix.platform.security.api
Class AuthorizationPolicyFactory
java.lang.Object
com.metamatrix.platform.security.api.AuthorizationPolicyFactory
public class AuthorizationPolicyFactory
- extends java.lang.Object
The class build the Policies from the xml file or converts the policies to xml file for importing and exporting of the policy
files from one server to another. look in the authorizations.xsd in this package for the format of the XML being imported and
exported
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthorizationPolicyFactory
public AuthorizationPolicyFactory()
buildPolicies
public static java.util.Collection<AuthorizationPolicy> buildPolicies(java.lang.String vdbName,
java.lang.String vdbVersion,
char[] xmlContents)
throws org.xml.sax.SAXException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException
- Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
exportPolicies
public static char[] exportPolicies(java.util.Collection<AuthorizationPolicy> roles)
throws java.io.IOException
- Throws:
java.io.IOException
buildAdminPolicies
public static java.util.Collection<AuthorizationPolicy> buildAdminPolicies(java.util.Properties roleMap)
- The properties will have format of
role1 = group1, group2
role2 = group3
- Parameters:
roles
-
- Returns:
Copyright © 2009. All Rights Reserved.