本文整理汇总了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;
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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];
}
示例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;
}
示例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);
}
示例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;
}