| | |
| | | return properties.keySet(); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | @SuppressWarnings("unchecked") |
| | | public <T> Collection<T> getPropertyValues(PropertyDefinition<T> d) { |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * A help call-back which displays help about available component types. |
| | | */ |
| | | /** A help call-back which displays help about available component types. */ |
| | | private static final class TypeHelpCallback<C extends ConfigurationClient, S extends Configuration> implements |
| | | HelpCallback { |
| | | |
| | |
| | | this.d = d; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void display(ConsoleApplication app) { |
| | | app.println(INFO_DSCFG_CREATE_TYPE_HELP_HEADING.get(d.getUserFriendlyPluralName())); |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Check that any referenced components are enabled if required. |
| | | */ |
| | | /** Check that any referenced components are enabled if required. */ |
| | | private static MenuResult<Void> checkReferences(ConsoleApplication app, ManagementContext context, |
| | | ManagedObject<?> mo, SubCommandHandler handler) throws ClientException { |
| | | ManagedObjectDefinition<?, ?> d = mo.getManagedObjectDefinition(); |
| | |
| | | return relation; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public SubCommand getSubCommand() { |
| | | return subCommand; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public MenuResult<Integer> run(ConsoleApplication app, LDAPManagementContextFactory factory) |
| | | throws ArgumentException, ClientException { |