You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by wi...@apache.org on 2017/06/09 09:18:25 UTC

[05/11] marmotta git commit: MARMOTTA-534: renamed legacy name

MARMOTTA-534: renamed legacy name


Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/d38867aa
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/d38867aa
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/d38867aa

Branch: refs/heads/develop
Commit: d38867aa1183cf8e2a72e20208dfd4edfc73462b
Parents: 8718475
Author: Sergio Fernández <wi...@apache.org>
Authored: Wed May 10 10:13:26 2017 +0200
Committer: Sergio Fernández <wi...@apache.org>
Committed: Wed May 10 10:13:26 2017 +0200

----------------------------------------------------------------------
 .../user/services/auth/LMFAuthProviderImpl.java | 49 --------------------
 .../services/auth/MarmottaAuthProviderImpl.java | 49 ++++++++++++++++++++
 2 files changed, 49 insertions(+), 49 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/d38867aa/platform/marmotta-user/src/main/java/org/apache/marmotta/platform/user/services/auth/LMFAuthProviderImpl.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-user/src/main/java/org/apache/marmotta/platform/user/services/auth/LMFAuthProviderImpl.java b/platform/marmotta-user/src/main/java/org/apache/marmotta/platform/user/services/auth/LMFAuthProviderImpl.java
deleted file mode 100644
index 07c66d3..0000000
--- a/platform/marmotta-user/src/main/java/org/apache/marmotta/platform/user/services/auth/LMFAuthProviderImpl.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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 org.apache.marmotta.platform.user.services.auth;
-
-import org.apache.marmotta.platform.user.api.AccountService;
-import org.apache.marmotta.platform.user.api.AuthenticationProvider;
-import org.apache.marmotta.platform.user.model.UserAccount;
-import org.apache.marmotta.platform.user.services.AuthenticationServiceImpl;
-
-import javax.enterprise.context.ApplicationScoped;
-import javax.enterprise.inject.Default;
-import javax.inject.Inject;
-import javax.inject.Named;
-
-@ApplicationScoped
-@Named(AuthenticationServiceImpl.DEFAULT_AUTH_PROVIDER_NAMED)
-@Default
-public class LMFAuthProviderImpl implements AuthenticationProvider {
-
-    @Inject
-    private AccountService accountService;
-
-    @Override
-    public boolean checkPassword(UserAccount login, String passwd) {
-        return accountService.checkPassword(login, passwd);
-    }
-
-    @Override
-    public boolean updatePassword(UserAccount login, String newPasswd) {
-        accountService.setPassword(login, newPasswd);
-        return true;
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/marmotta/blob/d38867aa/platform/marmotta-user/src/main/java/org/apache/marmotta/platform/user/services/auth/MarmottaAuthProviderImpl.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-user/src/main/java/org/apache/marmotta/platform/user/services/auth/MarmottaAuthProviderImpl.java b/platform/marmotta-user/src/main/java/org/apache/marmotta/platform/user/services/auth/MarmottaAuthProviderImpl.java
new file mode 100644
index 0000000..8568162
--- /dev/null
+++ b/platform/marmotta-user/src/main/java/org/apache/marmotta/platform/user/services/auth/MarmottaAuthProviderImpl.java
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF 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 org.apache.marmotta.platform.user.services.auth;
+
+import org.apache.marmotta.platform.user.api.AccountService;
+import org.apache.marmotta.platform.user.api.AuthenticationProvider;
+import org.apache.marmotta.platform.user.model.UserAccount;
+import org.apache.marmotta.platform.user.services.AuthenticationServiceImpl;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.enterprise.inject.Default;
+import javax.inject.Inject;
+import javax.inject.Named;
+
+@ApplicationScoped
+@Named(AuthenticationServiceImpl.DEFAULT_AUTH_PROVIDER_NAMED)
+@Default
+public class MarmottaAuthProviderImpl implements AuthenticationProvider {
+
+    @Inject
+    private AccountService accountService;
+
+    @Override
+    public boolean checkPassword(UserAccount login, String passwd) {
+        return accountService.checkPassword(login, passwd);
+    }
+
+    @Override
+    public boolean updatePassword(UserAccount login, String newPasswd) {
+        accountService.setPassword(login, newPasswd);
+        return true;
+    }
+
+}