]> git.argeo.org Git - lgpl/argeo-commons.git/blob - LdapEntryWorkingCopy.java
58e565a378596e9b14d5d809939c8551e895f2c5
[lgpl/argeo-commons.git] / LdapEntryWorkingCopy.java
1 package org.argeo.cms.directory.ldap;
2
3 import javax.naming.directory.Attributes;
4 import javax.naming.ldap.LdapName;
5
6 import org.argeo.api.cms.transaction.AbstractWorkingCopy;
7
8 /** Working copy for a user directory being edited. */
9 public class LdapEntryWorkingCopy extends AbstractWorkingCopy<LdapEntry, Attributes, LdapName> {
10 @Override
11 protected LdapName getId(LdapEntry entry) {
12 return (LdapName) entry.getDn().clone();
13 }
14
15 @Override
16 protected Attributes cloneAttributes(LdapEntry entry) {
17 return (Attributes) entry.getAttributes().clone();
18 }
19 }