/** * * connection must be to the configuration database and be open, remains * open after exiting * * @param uRI * @param con * @param pooled is not used by this function, but is passed along */ public static void CheckStatisticalPolicyAndCreate(String uRI, Connection con, boolean pooled, String domain, String server) { CheckPolicyAndCreate(uRI, con, PolicyType.STATISTICAL, pooled, domain, server, null); } }
/** * wrapper for PolicyType = Status connection must be to the configuration * database and be open, remains open after exiting * * @param uRI * @param con * @param pooled is not used by this function, but is passed along */ @Deprecated public static void CheckPolicyAndCreate(String uRI, Connection con, boolean pooled, String domain, String server) { CheckPolicyAndCreate(uRI, con, PolicyType.STATUS, pooled, domain, server, null); }
/** * Attempts to creates a policy of the given type. Since the database has * unique keys, an error messages are just swallowed up connection must be * to the configuration database and be open, remains open after exiting * * @param uRI * @param con * @param pooled is not used by this function, but is passed along */ @Deprecated public static void CheckPolicyAndCreate(String URL, Connection con, PolicyType p, boolean pooled, String domainname, String hostname) { CheckPolicyAndCreate(URL, con, p, pooled, domainname, hostname, null); }
try { AuxHelper.CheckPolicyAndCreate(uri, con, pt, true, domain, hostname, parentObject);
CheckPolicyAndCreate(name, con, policyType, pooled, domain, server, parentcomponent);
AuxHelper.CheckPolicyAndCreate(req.getURI(), con, pt, true, req.getDomainName(), req.getHostname(), req.getParentObject());
try { AuxHelper.CheckPolicyAndCreate(requestURL, con, PolicyType.TRANSACTIONAL, true, AuxHelper.UNSPECIFIED, Utility.getHostName());