当前位置: 首页>>代码示例>>Java>>正文


Java ProfileConfiguration类代码示例

本文整理汇总了Java中org.wso2.carbon.user.core.profile.ProfileConfiguration的典型用法代码示例。如果您正苦于以下问题:Java ProfileConfiguration类的具体用法?Java ProfileConfiguration怎么用?Java ProfileConfiguration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ProfileConfiguration类属于org.wso2.carbon.user.core.profile包,在下文中一共展示了ProfileConfiguration类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getAvailableProfileConfiguration

import org.wso2.carbon.user.core.profile.ProfileConfiguration; //导入依赖的package包/类
private String[] getAvailableProfileConfiguration(
        ProfileConfigurationManager profileAdmin) throws UserStoreException {
    ProfileConfiguration[] configurations;
    String[] profileNames = new String[0];
    try {
        configurations = (ProfileConfiguration[]) profileAdmin.getAllProfiles();
    } catch (org.wso2.carbon.user.api.UserStoreException e) {
        throw new UserStoreException(e);
    }

    if (configurations != null) {
        profileNames = new String[configurations.length];
        for (int i = 0; i < configurations.length; i++) {
            profileNames[i] = configurations[i].getProfileName();
        }
    }

    return profileNames;
}
 
开发者ID:wso2,项目名称:carbon-identity-framework,代码行数:20,代码来源:UserProfileAdmin.java

示例2: init

import org.wso2.carbon.user.core.profile.ProfileConfiguration; //导入依赖的package包/类
@Override
public void init(RealmConfiguration realmConfiguration, Map<String, ClaimMapping> map,
        Map<String, ProfileConfiguration> map1, int tenantId) throws UserStoreException {
    this.realmConfiguration = realmConfiguration;
    this.tenantId = tenantId;
    ((MockUserStoreManager)this.userStoreManager).setRealmConfiguration(this.realmConfiguration);
}
 
开发者ID:wso2,项目名称:carbon-identity-framework,代码行数:8,代码来源:MockRealm.java

示例3: addProfileConfig

import org.wso2.carbon.user.core.profile.ProfileConfiguration; //导入依赖的package包/类
public void addProfileConfig(ProfileConfiguration profileConfig) throws UserStoreException {
    try {
        getProfileConfigurationManager().addProfileConfig(profileConfig);
    } catch (org.wso2.carbon.user.api.UserStoreException e) {
        throw new UserStoreException(e);
    }
}
 
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:8,代码来源:ProfileConfigurationManagerService.java

示例4: deleteProfileConfig

import org.wso2.carbon.user.core.profile.ProfileConfiguration; //导入依赖的package包/类
public void deleteProfileConfig(ProfileConfiguration profileConfig) throws UserStoreException {
    try {
        getProfileConfigurationManager().deleteProfileConfig(profileConfig);
    } catch (org.wso2.carbon.user.api.UserStoreException e) {
        throw new UserStoreException(e);
    }

}
 
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:9,代码来源:ProfileConfigurationManagerService.java

示例5: getAllProfiles

import org.wso2.carbon.user.core.profile.ProfileConfiguration; //导入依赖的package包/类
public ProfileConfiguration[] getAllProfiles() throws UserStoreException {
    try {
        return (ProfileConfiguration[]) getProfileConfigurationManager().getAllProfiles();
    } catch (org.wso2.carbon.user.api.UserStoreException e) {
        throw new UserStoreException(e);
    }
}
 
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:8,代码来源:ProfileConfigurationManagerService.java

示例6: getProfileConfig

import org.wso2.carbon.user.core.profile.ProfileConfiguration; //导入依赖的package包/类
public ProfileConfiguration getProfileConfig(String profileName) throws UserStoreException {
    try {
        return (ProfileConfiguration) getProfileConfigurationManager().getProfileConfig(
                profileName);
    } catch (org.wso2.carbon.user.api.UserStoreException e) {
        throw new UserStoreException(e);
    }
}
 
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:9,代码来源:ProfileConfigurationManagerService.java

示例7: updateProfileConfig

import org.wso2.carbon.user.core.profile.ProfileConfiguration; //导入依赖的package包/类
public void updateProfileConfig(ProfileConfiguration profileConfig) throws UserStoreException {
    try {
        getProfileConfigurationManager().updateProfileConfig(profileConfig);
    } catch (org.wso2.carbon.user.api.UserStoreException e) {
        throw new UserStoreException(e);
    }
}
 
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:8,代码来源:ProfileConfigurationManagerService.java

示例8: addProfileConfig

import org.wso2.carbon.user.core.profile.ProfileConfiguration; //导入依赖的package包/类
public void addProfileConfig(ProfileConfiguration profileConfig) throws UserStoreException {
    try {
        stub.addProfileConfig(WSRealmUtil.convertToADBProfileConfiguration(profileConfig));
    } catch (Exception e) {
        this.handleException(e.getMessage(), e);
    }
}
 
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:8,代码来源:WSProfileConfigurationManager.java

示例9: deleteProfileConfig

import org.wso2.carbon.user.core.profile.ProfileConfiguration; //导入依赖的package包/类
public void deleteProfileConfig(ProfileConfiguration profileConfig) throws UserStoreException {
    try {
        stub.deleteProfileConfig(WSRealmUtil.convertToADBProfileConfiguration(profileConfig));
    } catch (Exception e) {
        this.handleException(e.getMessage(), e);
    }
}
 
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:8,代码来源:WSProfileConfigurationManager.java

示例10: updateProfileConfig

import org.wso2.carbon.user.core.profile.ProfileConfiguration; //导入依赖的package包/类
public void updateProfileConfig(ProfileConfiguration profileConfig) throws UserStoreException {
    try {
        stub.updateProfileConfig(WSRealmUtil.convertToADBProfileConfiguration(profileConfig));
    } catch (Exception e) {
        this.handleException(e.getMessage(), e);
    }
}
 
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:8,代码来源:WSProfileConfigurationManager.java

示例11: getAllProfiles

import org.wso2.carbon.user.core.profile.ProfileConfiguration; //导入依赖的package包/类
@Override
public ProfileConfiguration[] getAllProfiles() throws UserStoreException {
    try {
        return WSRealmUtil.convertToProfileConfigurations(stub.getAllProfiles());
    } catch (Exception e) {
        this.handleException(e.getMessage(), e);
    }
    return new ProfileConfiguration[0];
}
 
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:10,代码来源:WSProfileConfigurationManager.java

示例12: getProfileConfig

import org.wso2.carbon.user.core.profile.ProfileConfiguration; //导入依赖的package包/类
@Override
public ProfileConfiguration getProfileConfig(String profileName) throws UserStoreException {
    try {
        return WSRealmUtil.convertToProfileConfiguration(stub.getProfileConfig(profileName));
    } catch (Exception e) {
        this.handleException(e.getMessage(), e);
    }
    return null;
}
 
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:10,代码来源:WSProfileConfigurationManager.java

示例13: init

import org.wso2.carbon.user.core.profile.ProfileConfiguration; //导入依赖的package包/类
/**
 * Initialize WSRealm by Carbon
 *
 * @see org.wso2.carbon.user.core.UserRealm#init(org.wso2.carbon.user.api.RealmConfiguration, java.util.Map, int)
 */
@Override
public void init(RealmConfiguration configBean, Map<String, ClaimMapping> claimMapping,
                 Map<String, ProfileConfiguration> profileConfigs, int tenantId)
        throws UserStoreException {
    ConfigurationContext configCtxt =
            UserMgtWSAPIDSComponent.
                    getCcServiceInstance().
                    getClientConfigContext();
    init(configBean, configCtxt);
}
 
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:16,代码来源:WSRealm.java

示例14: getProfileTestData

import org.wso2.carbon.user.core.profile.ProfileConfiguration; //导入依赖的package包/类
public static Map<String, ProfileConfiguration> getProfileTestData() {
    Map<String, ProfileConfiguration> map = new HashMap<String, ProfileConfiguration>();
    ProfileConfiguration profConfig = new ProfileConfiguration();
    profConfig.setProfileName(HOME_PROFILE_NAME);
    profConfig.addHiddenClaim(CLAIM_URI1);
    profConfig.addInheritedClaim(CLAIM_URI2);
    profConfig.setDialectName("http://wso2.org/claims");
    map.put(HOME_PROFILE_NAME, profConfig);
    return map;
}
 
开发者ID:wso2,项目名称:carbon-registry,代码行数:11,代码来源:ClaimTestUtil.java


注:本文中的org.wso2.carbon.user.core.profile.ProfileConfiguration类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。