Examples of deleteUserClaimValue()


Examples of org.wso2.carbon.user.api.UserStoreManager.deleteUserClaimValue()

            ClaimManager cman = realm.getClaimManager();
            String[] claims = cman.getAllClaimUris();
            UserStoreManager admin = realm.getUserStoreManager();
            admin.deleteUserClaimValues(username, claims, profileName);
            admin.deleteUserClaimValue(username, UserCoreConstants.PROFILE_CONFIGURATION,
                            profileName);
        } catch (UserStoreException e) {
            // Not logging. Already logged.
            throw new UserProfileException(e.getMessage(), e);
        } catch (Exception e) {
View Full Code Here

Examples of org.wso2.carbon.user.core.UserStoreManager.deleteUserClaimValue()

        value = usWriter.getUserClaimValue("dimuthu", ClaimTestUtil.CLAIM_URI3,
                ClaimTestUtil.HOME_PROFILE_NAME);
        assertEquals("muthulee", value);

        // delete
        usWriter.deleteUserClaimValue("dimuthu", ClaimTestUtil.CLAIM_URI1, null);
        value = usWriter.getUserClaimValue("dimuthu", ClaimTestUtil.CLAIM_URI1, null);
        assertNull(value);

        usWriter.deleteUserClaimValues("dimuthu", allClaims, ClaimTestUtil.HOME_PROFILE_NAME);
        obtained = usWriter.getUserClaimValues("dimuthu", allClaims,
View Full Code Here

Examples of org.wso2.carbon.user.core.UserStoreManager.deleteUserClaimValue()

        value = usWriter.getUserClaimValue("dimuthu", ClaimTestUtil.CLAIM_URI3,
                ClaimTestUtil.HOME_PROFILE_NAME);
        assertEquals("muthulee", value);

        //DELETE
        usWriter.deleteUserClaimValue("dimuthu", ClaimTestUtil.CLAIM_URI1, null);
        value = usWriter.getUserClaimValue("dimuthu", ClaimTestUtil.CLAIM_URI1, null);
        assertNull(value);
        try{
             usWriter.deleteUserClaimValue("dimuthu", null, null);
             fail("Exception at null Claim URI");
View Full Code Here

Examples of org.wso2.carbon.user.core.UserStoreManager.deleteUserClaimValue()

        //DELETE
        usWriter.deleteUserClaimValue("dimuthu", ClaimTestUtil.CLAIM_URI1, null);
        value = usWriter.getUserClaimValue("dimuthu", ClaimTestUtil.CLAIM_URI1, null);
        assertNull(value);
        try{
             usWriter.deleteUserClaimValue("dimuthu", null, null);
             fail("Exception at null Claim URI");
        }catch(Exception e){
            //expected exception
        }
        try{
View Full Code Here

Examples of org.wso2.carbon.user.core.UserStoreManager.deleteUserClaimValue()

             fail("Exception at null Claim URI");
        }catch(Exception e){
            //expected exception
        }
        try{
            usWriter.deleteUserClaimValue(null,ClaimTestUtil.CLAIM_URI1, null);
            fail("Exception at giving null user name to delete user claim values");
        }catch(Exception e){
            //expected exception
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.