use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class UMChangeUserPasswordViewBean method createPropertyModel.
protected void createPropertyModel() {
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyUserChangePassword.xml"));
propertySheetModel.clear();
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class AgentGroupAddViewBean method createPropertyModel.
private void createPropertyModel() {
String agentType = getAgentType();
String xml;
if (agentType.equals(AgentConfiguration.AGENT_TYPE_J2EE)) {
xml = "com/sun/identity/console/propertyAgentGroupAddJ2EE.xml";
} else if (agentType.equals(AgentConfiguration.AGENT_TYPE_WEB)) {
xml = "com/sun/identity/console/propertyAgentGroupAddWeb.xml";
} else {
xml = "com/sun/identity/console/propertyAgentGroupAdd.xml";
}
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(xml));
propertySheetModel.clear();
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class AgentProfileViewBean method createPropertyModel.
protected boolean createPropertyModel() {
boolean created = false;
String type = getAgentType();
if ((type != null) && (type.trim().length() > 0)) {
String curRealm = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
AgentsModel model = (AgentsModel) getModel();
String universalId = (String) getPageSessionAttribute(UNIVERSAL_ID);
String choice = (String) getPageSessionAttribute(AgentsViewBean.LOCAL_OR_NOT);
if (checkAgentType(type)) {
inheritedPropertyNames = (!isGroup && !is2dot2Agent() && !isAgentAuthenticator() && !choice.equals(AgentsViewBean.PROP_LOCAL)) ? model.getInheritedPropertyNames(curRealm, universalId) : Collections.EMPTY_SET;
} else {
inheritedPropertyNames = (!isGroup && !is2dot2Agent() && !isAgentAuthenticator()) ? model.getInheritedPropertyNames(curRealm, universalId) : Collections.EMPTY_SET;
}
AMPropertySheetModel psModel = createPropertySheetModel(type);
if (psModel != null) {
propertySheetModel = psModel;
propertySheetModel.clear();
}
created = true;
}
return created;
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class SAMLv2SPAdvancedViewBean method createPropertyModel.
protected void createPropertyModel() {
retrieveCommonProperties();
if (isHosted()) {
psModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertySAMLv2SPAdvancedHosted.xml"));
} else {
psModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertySAMLv2SPAdvancedRemote.xml"));
}
psModel.clear();
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class SAMLv2SPAssertionContentViewBean method createPropertyModel.
protected void createPropertyModel() {
retrieveCommonProperties();
if (isHosted()) {
psModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertySAMLv2SPAssertionContentHosted.xml"));
createAuthContextsModel();
psModel.setModel(TBL_AUTHENTICATION_CONTEXTS, tblAuthContextsModel);
} else {
psModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertySAMLv2SPAssertionContentRemote.xml"));
}
psModel.clear();
}
Aggregations