Examples of Claim


Examples of org.wso2.carbon.user.core.claim.Claim

        try {
            claimManager = IdentityClaimManager.getInstance();
            claims = claimManager.getAllSupportedClaims(IdentityConstants.OPENID_AX_DIALECT,
                    IdentityTenantUtil.getRealm(null,getUserIdentifier()));
            for (int i = 0; i < claims.length; i++) {
                Claim temp = claims[i];
                supportedClaims.put(temp.getClaimUri(), temp);
            }

            Claim openid = new Claim();
            openid.setClaimUri(IdentityConstants.CLAIM_OPENID);
            openid.setDisplayTag("OpenID");
            openid.setDescription("OpenID");
            supportedClaims.put(IdentityConstants.CLAIM_OPENID, openid);

        } catch (IdentityException e) {
            log.error("Error while loading claims", e);
            throw new IdentityProviderException("Error while loading claims", e);
View Full Code Here

Examples of org.wso2.carbon.user.core.claim.Claim

                String profile = profileNames[i];
                Map<String, String> valueMap = ur.getUserClaimValues(username, claimUris, profile);
                ArrayList<UserFieldDTO> userFields = new ArrayList<UserFieldDTO>();
                for (int j = 0; j < claims.length; j++) {
                    UserFieldDTO data = new UserFieldDTO();
                    Claim claim = claims[j];
                    String claimUri = claim.getClaimUri();
                    if (!UserCoreConstants.PROFILE_CONFIGURATION.equals(claimUri)) {
                        data.setClaimUri(claimUri);
                        data.setFieldValue(valueMap.get(claimUri));
                        data.setDisplayName(claim.getDisplayTag());
                        data.setRegEx(claim.getRegEx());
                        data.setRequired(claim.isRequired());
                        data.setDisplayOrder(claim.getDisplayOrder());
                        userFields.add(data);
                    }
                }

                UserProfileDTO temp = new UserProfileDTO();
View Full Code Here

Examples of org.wso2.carbon.user.core.claim.Claim

                claimUris[i] = claims[i].getClaimUri();
            }
            datas = new UserFieldDTO[claims.length];
            for (int j = 0; j < claims.length; j++) {
                UserFieldDTO data = new UserFieldDTO();
                Claim claim = claims[j];
                String claimUri = claim.getClaimUri();
                data.setClaimUri(claimUri);
                data.setDisplayName(claim.getDisplayTag());
                data.setRegEx(claim.getRegEx());
                data.setRequired(claim.isRequired());
                data.setDisplayOrder(claim.getDisplayOrder());
                data.setRegEx(claim.getRegEx());
                datas[j] = data;
            }

        } catch (Exception e) {
            // Not logging. Already logged.
View Full Code Here

Examples of org.wso2.carbon.user.core.claim.Claim

            Map<String, String> valueMap = ur.getUserClaimValues(username, claimUris, profileName);
            ArrayList<UserFieldDTO> userFields = new ArrayList<UserFieldDTO>();

            for (int j = 0; j < claims.length; j++) {
                UserFieldDTO data = new UserFieldDTO();
                Claim claim = claims[j];
                String claimUri = claim.getClaimUri();
                if (!UserCoreConstants.PROFILE_CONFIGURATION.equals(claimUri)) {
                    data.setClaimUri(claimUri);
                    data.setFieldValue(valueMap.get(claimUri));
                    data.setDisplayName(claim.getDisplayTag());
                    data.setRegEx(claim.getRegEx());
                    data.setRequired(claim.isRequired());
                    data.setDisplayOrder(claim.getDisplayOrder());
                    userFields.add(data);
                }
            }

            profile.setProfileName(profileName);
View Full Code Here

Examples of org.wso2.carbon.user.core.claim.Claim

        try {
            claimManager = IdentityClaimManager.getInstance();
            claims = claimManager.getAllSupportedClaims(UserCoreConstants.DEFAULT_CARBON_DIALECT,
                    IdentityTenantUtil.getRealm(null, userIdentifier));
            for (int i = 0; i < claims.length; i++) {
                Claim temp = claims[i];
                supportedClaims.put(temp.getClaimUri(), temp);
            }
        } catch (IdentityException e) {
            log.error("Error while loading claims", e);
            throw new IdentityProviderException("Error while loading claims", e);
        }
View Full Code Here

Examples of org.wso2.carbon.user.core.claim.Claim

     *
     * @param URI
     * @return
     */
    public String getDisplayName(String URI) {
        Claim claim = null;

        if (log.isDebugEnabled()) {
            log.debug("");
        }

        claim = supportedClaims.get(URI);
        if (claim != null) {
            if (IdentityConstants.CLAIM_PPID.equals(claim.getClaimUri())) {
                return IdentityConstants.PPID_DISPLAY_VALUE;
            }
            return claim.getDisplayTag();
        }
        return null;
    }
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.