Search in sources :

Example 1 with NetworkPropertyPage

use of models.properties.NetworkPropertyPage in project coprhd-controller by CoprHD.

the class ConfigProperties method loadPropertyPages.

private static List<PropertyPage> loadPropertyPages() {
    boolean isActiveSite = DisasterRecoveryUtils.isActiveSite();
    Map<String, Property> properties = loadProperties();
    Map<String, PropertyPage> pages = Maps.newLinkedHashMap();
    Map<String, PropertyPage> excludePages = Maps.newLinkedHashMap();
    if (isActiveSite) {
        addPage(pages, new NetworkPropertyPage(properties));
        if (PlatformUtils.isAppliance()) {
            // This done to maintain the current tab order
            addPage(pages, new SecurityPropertyPage(properties));
        }
        addPage(pages, new ControllerPropertyPage(properties));
        addPage(pages, new DiscoveryPropertyPage(properties));
        if (!SetupUtils.isOssBuild()) {
            addPage(pages, new SupportPropertyPage(properties));
        }
        addPage(pages, new SmtpPropertyPage(properties));
        addPage(pages, new UpgradePropertyPage(properties));
        addPage(pages, new PasswordPropertyPage(properties));
        addPage(pages, new SyslogPropertiesPage(properties));
        addPage(pages, new BackupPropertyPage(properties));
    } else {
        if (PlatformUtils.isAppliance()) {
            addPage(pages, new SecurityPropertyPage(properties));
        }
        addPage(excludePages, new NetworkPropertyPage(properties));
        addPage(excludePages, new ControllerPropertyPage(properties));
        addPage(excludePages, new DiscoveryPropertyPage(properties));
        addPage(excludePages, new SupportPropertyPage(properties));
        addPage(excludePages, new SmtpPropertyPage(properties));
        addPage(excludePages, new UpgradePropertyPage(properties));
        addPage(excludePages, new DefaultPropertyPage(OTHER));
        addPage(excludePages, new PasswordPropertyPage(properties));
        addPage(excludePages, new SyslogPropertiesPage(properties));
        addPage(excludePages, new BackupPropertyPage(properties));
    }
    addDefaultPages(pages, properties.values(), excludePages, isActiveSite);
    return Lists.newArrayList(pages.values());
}
Also used : PasswordPropertyPage(models.properties.PasswordPropertyPage) SecurityPropertyPage(models.properties.SecurityPropertyPage) ControllerPropertyPage(models.properties.ControllerPropertyPage) SecurityPropertyPage(models.properties.SecurityPropertyPage) SupportPropertyPage(models.properties.SupportPropertyPage) NetworkPropertyPage(models.properties.NetworkPropertyPage) PropertyPage(models.properties.PropertyPage) ControllerPropertyPage(models.properties.ControllerPropertyPage) SmtpPropertyPage(models.properties.SmtpPropertyPage) PasswordPropertyPage(models.properties.PasswordPropertyPage) DiscoveryPropertyPage(models.properties.DiscoveryPropertyPage) DefaultPropertyPage(models.properties.DefaultPropertyPage) BackupPropertyPage(models.properties.BackupPropertyPage) UpgradePropertyPage(models.properties.UpgradePropertyPage) SupportPropertyPage(models.properties.SupportPropertyPage) DiscoveryPropertyPage(models.properties.DiscoveryPropertyPage) UpgradePropertyPage(models.properties.UpgradePropertyPage) SyslogPropertiesPage(models.properties.SyslogPropertiesPage) BackupPropertyPage(models.properties.BackupPropertyPage) SmtpPropertyPage(models.properties.SmtpPropertyPage) DefaultPropertyPage(models.properties.DefaultPropertyPage) NetworkPropertyPage(models.properties.NetworkPropertyPage) Property(models.properties.Property)

Aggregations

BackupPropertyPage (models.properties.BackupPropertyPage)1 ControllerPropertyPage (models.properties.ControllerPropertyPage)1 DefaultPropertyPage (models.properties.DefaultPropertyPage)1 DiscoveryPropertyPage (models.properties.DiscoveryPropertyPage)1 NetworkPropertyPage (models.properties.NetworkPropertyPage)1 PasswordPropertyPage (models.properties.PasswordPropertyPage)1 Property (models.properties.Property)1 PropertyPage (models.properties.PropertyPage)1 SecurityPropertyPage (models.properties.SecurityPropertyPage)1 SmtpPropertyPage (models.properties.SmtpPropertyPage)1 SupportPropertyPage (models.properties.SupportPropertyPage)1 SyslogPropertiesPage (models.properties.SyslogPropertiesPage)1 UpgradePropertyPage (models.properties.UpgradePropertyPage)1