Search in sources :

Example 1 with MultiServicesPropertyXMLBuilder

use of com.sun.identity.console.property.MultiServicesPropertyXMLBuilder in project OpenAM by OpenRock.

the class RMRealmModelImpl method getPropertyXML.

private void getPropertyXML(StringBuffer buff, boolean readonly) throws AMConsoleException {
    try {
        OrganizationConfigManager orgMgr = new OrganizationConfigManager(adminSSOToken, "/");
        Set serviceSchemas = orgMgr.getServiceSchemas();
        for (Iterator iter = serviceSchemas.iterator(); iter.hasNext(); ) {
            MultiServicesPropertyXMLBuilder xmlBuilder = new MultiServicesPropertyXMLBuilder((ServiceSchema) iter.next(), this);
            xmlBuilder.setAllAttributeReadOnly(readonly);
            buff.append(xmlBuilder.getXML(false));
        }
    } catch (SSOException e) {
        debug.error("RMRealmModelImpl.getPropertyXML", e);
    } catch (SMSException e) {
        debug.error("RMRealmModelImpl.getPropertyXML", e);
    }
}
Also used : Set(java.util.Set) MultiServicesPropertyXMLBuilder(com.sun.identity.console.property.MultiServicesPropertyXMLBuilder) SMSException(com.sun.identity.sm.SMSException) OrganizationConfigManager(com.sun.identity.sm.OrganizationConfigManager) Iterator(java.util.Iterator) SSOException(com.iplanet.sso.SSOException)

Aggregations

SSOException (com.iplanet.sso.SSOException)1 MultiServicesPropertyXMLBuilder (com.sun.identity.console.property.MultiServicesPropertyXMLBuilder)1 OrganizationConfigManager (com.sun.identity.sm.OrganizationConfigManager)1 SMSException (com.sun.identity.sm.SMSException)1 Iterator (java.util.Iterator)1 Set (java.util.Set)1