Commit ec0521a9 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Allow delete of Native and POP3 providers (JM-425).

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3069 b35dd754-fafc-0310-a699-88a17e54d16e
parent fcdaf9f8
...@@ -4,8 +4,8 @@ package org.jivesoftware.messenger.user; ...@@ -4,8 +4,8 @@ package org.jivesoftware.messenger.user;
* A UserProvider to be used in conjunction with * A UserProvider to be used in conjunction with
* {@link org.jivesoftware.messenger.auth.NativeAuthProvider NativeAuthProvider}, which * {@link org.jivesoftware.messenger.auth.NativeAuthProvider NativeAuthProvider}, which
* authenticates using OS-level authentication. New user accounts will automatically be * authenticates using OS-level authentication. New user accounts will automatically be
* created as needed (upon successful initial authentication) and are subsequently treated as * created as needed (upon successful initial authentication). To enable this provider,
* read-only. To enable this provider, edit the XML config file file and set: * edit the XML config file file and set:
* *
* <pre> * <pre>
* &lt;provider&gt; * &lt;provider&gt;
...@@ -24,8 +24,8 @@ package org.jivesoftware.messenger.user; ...@@ -24,8 +24,8 @@ package org.jivesoftware.messenger.user;
*/ */
public class NativeUserProvider extends DefaultUserProvider { public class NativeUserProvider extends DefaultUserProvider {
public boolean isReadOnly() { public void setPassword(String username, String password) throws UserNotFoundException {
return true; throw new UnsupportedOperationException();
} }
public boolean supportsPasswordRetrieval() { public boolean supportsPasswordRetrieval() {
......
...@@ -16,7 +16,8 @@ package org.jivesoftware.messenger.user; ...@@ -16,7 +16,8 @@ package org.jivesoftware.messenger.user;
* {@link org.jivesoftware.messenger.auth.POP3AuthProvider POP3AuthProvider}, which * {@link org.jivesoftware.messenger.auth.POP3AuthProvider POP3AuthProvider}, which
* authenticates using a POP3 server. New user accounts will automatically be created * authenticates using a POP3 server. New user accounts will automatically be created
* as needed (upon successful initial authentication) and are subsequently treated as * as needed (upon successful initial authentication) and are subsequently treated as
* read-only. To enable this provider, edit the XML config file file and set: * read-only (for the most part). To enable this provider, edit the XML config file
* and set:
* *
* <pre> * <pre>
* &lt;provider&gt; * &lt;provider&gt;
...@@ -34,8 +35,12 @@ package org.jivesoftware.messenger.user; ...@@ -34,8 +35,12 @@ package org.jivesoftware.messenger.user;
*/ */
public class POP3UserProvider extends DefaultUserProvider { public class POP3UserProvider extends DefaultUserProvider {
public boolean isReadOnly() { public void setEmail(String username, String email) throws UserNotFoundException {
return true; throw new UnsupportedOperationException();
}
public void setPassword(String username, String password) throws UserNotFoundException {
throw new UnsupportedOperationException();
} }
public boolean supportsPasswordRetrieval() { public boolean supportsPasswordRetrieval() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment