Package org.ofbiz.crowd.user

Examples of org.ofbiz.crowd.user.UserWrapper


     * @param username User's username
     * @throws org.ofbiz.common.authentication.api.AuthenticatorException
     *          user synchronization fails
     */
    public void syncUser(String username) throws AuthenticatorException {
        UserWrapper user;
        try {
            user = callGetUser(username);
        } catch (RemoteException e) {
            throw new AuthenticatorException(e.getMessage(), e);
        }

        GenericValue system;
        try {
            system = delegator.findOne("UserLogin", UtilMisc.toMap("userLoginId", "system"), true);
        } catch (GenericEntityException e) {
            throw new AuthenticatorException(e.getMessage(), e);
        }

        GenericValue userLogin;
        try {
            userLogin = delegator.findOne("UserLogin", UtilMisc.toMap("userLoginId", user.getName()), false);
        } catch (GenericEntityException e) {
            throw new AuthenticatorException(e.getMessage(), e);
        }

        // suspend the current transaction and load the user
View Full Code Here


        } catch (RemoteException e) {
            Debug.logError(e, module);
            throw e;
        }

        return new UserWrapper(principal, groups);
    }
View Full Code Here

TOP

Related Classes of org.ofbiz.crowd.user.UserWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.