[security-dev] IDM:: API Change question - feedback requested

Jason Porter lightguard.jp at gmail.com
Sat Dec 1 12:36:05 EST 2012


+1

Sent from my iPhone

On Nov 28, 2012, at 18:40, Anil Saldhana <Anil.Saldhana at redhat.com> wrote:

> Hi all,
>   Shane, Pedro and I have been discussing the following use case and 
> agree on method name change. Shane suggested the list due to it being an 
> API change.
> 
> The developer can ask the Identity Manager to create an instance of 
> User/Role/Group  (IdentityType). This use case is pretty clear.
> 
> Now if the developer wants to create his own instances of U/R/G as:
> 
> User user = new SimpleUser("userA");
> 
> Now he needs to persist this to the store.
> 
> The current API call would be:
> 
> User storeUser = identityManager.createUser(user)
> 
> We feel this is not as intuitive as:
> 
> User storeUser = identityManager.persist(user)
> 
> Objections to this API change?
> 
> Regards,
> Anil
> _______________________________________________
> security-dev mailing list
> security-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/security-dev


More information about the security-dev mailing list