]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - AbstractLdapUserAdmin.java
254e5423c272e2972ceb98eeb9961cf81eb747e7
1 package org
.argeo
.osgi
.useradmin
;
4 import java
.util
.Arrays
;
7 import org
.osgi
.service
.useradmin
.UserAdmin
;
9 public abstract class AbstractLdapUserAdmin
implements UserAdmin
{
10 private boolean isReadOnly
;
13 private UserAdmin externalRoles
;
15 public AbstractLdapUserAdmin() {
18 public AbstractLdapUserAdmin(URI uri
, boolean isReadOnly
) {
20 this.isReadOnly
= isReadOnly
;
23 private List
<String
> indexedUserProperties
= Arrays
.asList(new String
[] {
24 "uid", "mail", "cn" });
26 protected URI
getUri() {
30 protected void setUri(URI uri
) {
34 protected List
<String
> getIndexedUserProperties() {
35 return indexedUserProperties
;
38 protected void setIndexedUserProperties(List
<String
> indexedUserProperties
) {
39 this.indexedUserProperties
= indexedUserProperties
;
42 protected void setReadOnly(boolean isReadOnly
) {
43 this.isReadOnly
= isReadOnly
;
46 public boolean isReadOnly() {
54 public void destroy() {
58 UserAdmin
getExternalRoles() {
62 public void setExternalRoles(UserAdmin externalRoles
) {
63 this.externalRoles
= externalRoles
;