Subversion Repositories linid-dm

Compare Revisions

Rev 421 → Rev 427

/trunk/src/main/java/org/linid/dm/ldap/repository/service/impl/AbstractLdapEntryRepository.java
93,7 → 93,7
/* (non-Javadoc)
* @see org.linid.dm.ldap.repository.impl.LdapEntryRepository#create(javax.naming.Name, org.linid.dm.ldap.objects.IELdapEntry)
*/
public void create(Name authDn, IELdapEntry entry, Name targetCreateDn) throws NameAlreadyBoundException, AuthorizationException, PostProcessingException {
public IELdapEntry create(Name authDn, IELdapEntry entry, Name targetCreateDn) throws NameAlreadyBoundException, AuthorizationException, PostProcessingException {
//for creation, the right is look on the parentDN
LdapName parentDn = new LdapName(entry.getDn().getRdns());
try {
122,7 → 122,7
throw new PostProcessingException("An error happen during post processing.");
}
this.getLdapFacade(authDn).createSubcontext(postProcessedEntry);
this.postProcess(entry,ActionType.postCreate);
return this.postProcess(postProcessedEntry,ActionType.postCreate);
}
 
/* (non-Javadoc)
/trunk/src/main/java/org/linid/dm/ldap/repository/LdapEntryRepository.java
42,10 → 42,11
* the repository allows CRUD operations
*/
/** create an entry
* @return the post-processed entry
* @throws PostProcessingException
* @throws NamingException
*/
void create(Name authDn, IELdapEntry entry, Name targetCreateDn) throws NameAlreadyBoundException, AuthorizationException, PostProcessingException;
IELdapEntry create(Name authDn, IELdapEntry entry, Name targetCreateDn) throws NameAlreadyBoundException, AuthorizationException, PostProcessingException;
 
/**
* Returns an Entry with the specified username, if exists and authDn has sufficient rights to read it,