[java-identity-provider] 04/05: IDP-1179 Add in warning placeholders with old RDBMS impl classes
Rod Widdowson
rdw at steadingsoftware.com
Fri Nov 22 03:28:08 EST 2019
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch master
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=6af17de8173c7dda1347855b0d7cae4be2a12ad1
commit 6af17de8173c7dda1347855b0d7cae4be2a12ad1
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Nov 18 16:49:58 2019 +0000
IDP-1179 Add in warning placeholders with old RDBMS impl classes
https://issues.shibboleth.net/jira/browse/IDP-1179
StringResultMappingStrategy
FormatExecutableStatementBuilder
TemplatedExecutableStatementBuilder
---
.../impl/FormatExecutableStatementBuilder.java | 38 +++++++++++++++++++++
.../dc/rdbms/impl/StringResultMappingStrategy.java | 38 +++++++++++++++++++++
.../impl/TemplatedExecutableStatementBuilder.java | 39 ++++++++++++++++++++++
3 files changed, 115 insertions(+)
diff --git a/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/dc/rdbms/impl/FormatExecutableStatementBuilder.java b/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/dc/rdbms/impl/FormatExecutableStatementBuilder.java
new file mode 100644
index 0000000..a7ff907
--- /dev/null
+++ b/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/dc/rdbms/impl/FormatExecutableStatementBuilder.java
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the University Corporation for Advanced Internet Development,
+ * Inc. (UCAID) under one or more contributor license agreements. See the
+ * NOTICE file distributed with this work for additional information regarding
+ * copyright ownership. The UCAID licenses this file to You under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.shibboleth.idp.attribute.resolver.dc.rdbms.impl;
+
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
+
+/**
+ * Placeholder for legacy use of an impl class.
+ */
+public class FormatExecutableStatementBuilder
+ extends net.shibboleth.idp.attribute.resolver.dc.rdbms.FormatExecutableStatementBuilder {
+
+ /** Constructor. */
+ public FormatExecutableStatementBuilder() {
+ super();
+ // V4 deprecation
+ DeprecationSupport.warnOnce(ObjectType.CLASS,
+ "net.shibboleth.idp.attribute.resolver.dc.rdbms.impl.FormatExecutableStatementBuilder",
+ null,
+ "net.shibboleth.idp.attribute.resolver.dc.rdbms.FormatExecutableStatementBuilder");
+ }
+}
diff --git a/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/dc/rdbms/impl/StringResultMappingStrategy.java b/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/dc/rdbms/impl/StringResultMappingStrategy.java
new file mode 100644
index 0000000..6a89a72
--- /dev/null
+++ b/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/dc/rdbms/impl/StringResultMappingStrategy.java
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the University Corporation for Advanced Internet Development,
+ * Inc. (UCAID) under one or more contributor license agreements. See the
+ * NOTICE file distributed with this work for additional information regarding
+ * copyright ownership. The UCAID licenses this file to You under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.shibboleth.idp.attribute.resolver.dc.rdbms.impl;
+
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
+
+/**
+ * Deprecating Placeholder for old (documented) class.
+ */
+public class StringResultMappingStrategy
+ extends net.shibboleth.idp.attribute.resolver.dc.rdbms.StringResultMappingStrategy {
+
+ /** Constructor. */
+ public StringResultMappingStrategy() {
+ super();
+ // V4 deprecation
+ DeprecationSupport.warnOnce(ObjectType.CLASS,
+ "net.shibboleth.idp.attribute.resolver.dc.rdbms.impl.StringResultMappingStrategy",
+ null,
+ "net.shibboleth.idp.attribute.resolver.dc.rdbms.StringResultMappingStrategy");
+ }
+}
diff --git a/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/dc/rdbms/impl/TemplatedExecutableStatementBuilder.java b/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/dc/rdbms/impl/TemplatedExecutableStatementBuilder.java
new file mode 100644
index 0000000..c5f66f3
--- /dev/null
+++ b/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/dc/rdbms/impl/TemplatedExecutableStatementBuilder.java
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the University Corporation for Advanced Internet Development,
+ * Inc. (UCAID) under one or more contributor license agreements. See the
+ * NOTICE file distributed with this work for additional information regarding
+ * copyright ownership. The UCAID licenses this file to You under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.shibboleth.idp.attribute.resolver.dc.rdbms.impl;
+
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
+
+/**
+ *A {@link V2CompatibleTemplateExecutableStatementBuilder} with a legacy name which warns.
+ */
+public class TemplatedExecutableStatementBuilder extends V2CompatibleTemplateExecutableStatementBuilder {
+
+ /** Constructor.
+ * This is purely there to move people away from the V3 impl class.
+ */
+ public TemplatedExecutableStatementBuilder() {
+ super();
+ // V4 deprecation
+ DeprecationSupport.warnOnce(ObjectType.CLASS,
+ "net.shibboleth.idp.attribute.resolver.dc.rdbms.impl.TemplatedExecutableStatementBuilder",
+ null,
+ "net.shibboleth.idp.attribute.resolver.dc.rdbms.TemplatedExecutableStatementBuilder");
+ }
+}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list