AutoRefactor'ed remove useless semi-colons
| | |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | | |
| | | }; |
| | | |
| | | /** |
| | | * The server-side constraint handler. |
| | | */ |
| | | /** The server-side constraint handler. */ |
| | | private final class ServerHandler extends ServerConstraintHandler { |
| | | |
| | | /** Private constructor. */ |
| | |
| | | return true; |
| | | } |
| | | } |
| | | |
| | | }; |
| | | } |
| | | |
| | | /** The client-side constraint handler. */ |
| | | private final ClientConstraintHandler clientHandler = new ClientHandler(); |
| | |
| | | */ |
| | | public LocalizableMessage getUsage(PropertyDefinition<?> pd) { |
| | | return pd.accept(pimpl, null); |
| | | }; |
| | | |
| | | } |
| | | } |
| | |
| | | ADD, |
| | | /** The user chose to delete values. */ |
| | | REMOVE |
| | | }; |
| | | } |
| | | |
| | | private PropertyDefinition<T> propertyDefinition; |
| | | private Type type; |
| | |
| | | private Sign(byte mask) { |
| | | this.mask = mask; |
| | | } |
| | | }; |
| | | } |
| | | |
| | | private int length(int i) { |
| | | return i; |
| | |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.guitools.controlpanel.datamodel; |
| | | |
| | | import java.io.File; |
| | |
| | | |
| | | import org.opends.server.types.BackupInfo; |
| | | |
| | | /** |
| | | * Class used to describe a backup. |
| | | */ |
| | | /** Class used to describe a backup. */ |
| | | public class BackupDescriptor |
| | | { |
| | | /** |
| | | * The different types of backups. |
| | | * |
| | | */ |
| | | /** The different types of backups. */ |
| | | public enum Type |
| | | { |
| | | /** |
| | | * Full backup. |
| | | */ |
| | | /** Full backup. */ |
| | | FULL, |
| | | /** |
| | | * Incremental backup. |
| | | */ |
| | | /** Incremental backup. */ |
| | | INCREMENTAL |
| | | }; |
| | | } |
| | | |
| | | private Type type; |
| | | private Date creationDate; |
| | | private File path; |
| | |
| | | * Regular type. |
| | | */ |
| | | REGULAR |
| | | }; |
| | | } |
| | | |
| | | /** |
| | | * Constructor. |
| | |
| | | { |
| | | private Set<CustomSearchResult> monitoringEntries = Collections.emptySet(); |
| | | |
| | | /** |
| | | * Enumeration used to represent the state of the listener. |
| | | */ |
| | | /** Enumeration used to represent the state of the listener. */ |
| | | public enum State |
| | | { |
| | | /** |
| | | * The listener is enabled. |
| | | */ |
| | | /** The listener is enabled. */ |
| | | ENABLED, |
| | | /** |
| | | * The listener is disabled. |
| | | */ |
| | | /** The listener is disabled. */ |
| | | DISABLED, |
| | | /** |
| | | * The state of the listener is unknown. |
| | | */ |
| | | /** The state of the listener is unknown. */ |
| | | UNKNOWN |
| | | }; |
| | | } |
| | | |
| | | /** |
| | | * Enumeration used to represent the Protocol of the listener. |
| | | * |
| | | */ |
| | | /** Enumeration used to represent the Protocol of the listener. */ |
| | | public enum Protocol |
| | | { |
| | | /** |
| | | * LDAP protocol. |
| | | */ |
| | | /** LDAP protocol. */ |
| | | LDAP(INFO_CTRL_PANEL_CONN_HANDLER_LDAP.get()), |
| | | /** |
| | | * LDAP accepting Start TLS protocol. |
| | | */ |
| | | /** LDAP accepting Start TLS protocol. */ |
| | | LDAP_STARTTLS(INFO_CTRL_PANEL_CONN_HANDLER_LDAP_STARTTLS.get()), |
| | | /** |
| | | * LDAP secure protocol. |
| | | */ |
| | | /** LDAP secure protocol. */ |
| | | LDAPS(INFO_CTRL_PANEL_CONN_HANDLER_LDAPS.get()), |
| | | /** |
| | | * HTTP protocol. |
| | | */ |
| | | /** HTTP protocol. */ |
| | | HTTP(INFO_CTRL_PANEL_CONN_HANDLER_HTTP.get()), |
| | | /** |
| | | * HTTP secure protocol. |
| | | */ |
| | | /** HTTP secure protocol. */ |
| | | HTTPS(INFO_CTRL_PANEL_CONN_HANDLER_HTTPS.get()), |
| | | /** |
| | | * JMX protocol. |
| | | */ |
| | | /** JMX protocol. */ |
| | | JMX(INFO_CTRL_PANEL_CONN_HANDLER_JMX.get()), |
| | | /** |
| | | * JMX secure protocol. |
| | | */ |
| | | /** JMX secure protocol. */ |
| | | JMXS(INFO_CTRL_PANEL_CONN_HANDLER_JMXS.get()), |
| | | /** |
| | | * LDIF protocol. |
| | | */ |
| | | /** LDIF protocol. */ |
| | | LDIF(INFO_CTRL_PANEL_CONN_HANDLER_LDIF.get()), |
| | | /** |
| | | * SNMP protocol. |
| | | */ |
| | | /** SNMP protocol. */ |
| | | SNMP(INFO_CTRL_PANEL_CONN_HANDLER_SNMP.get()), |
| | | /** |
| | | * Replication protocol. Even if in the configuration is not considered |
| | | * as a listener, we display it on the table. |
| | | */ |
| | | REPLICATION(INFO_CTRL_PANEL_CONN_HANDLER_REPLICATION.get()), |
| | | /** |
| | | * Secure replication protocol. |
| | | */ |
| | | /** Secure replication protocol. */ |
| | | REPLICATION_SECURE(INFO_CTRL_PANEL_CONN_HANDLER_REPLICATION_SECURE.get()), |
| | | /** |
| | | * Admin connector protocol. |
| | | */ |
| | | /** Admin connector protocol. */ |
| | | ADMINISTRATION_CONNECTOR(INFO_CTRL_PANEL_CONN_HANDLER_ADMINISTRATION.get()), |
| | | /** |
| | | * Other protocol. |
| | | */ |
| | | /** Other protocol. */ |
| | | OTHER(INFO_CTRL_PANEL_CONN_HANDLER_OTHER.get()); |
| | | |
| | | private LocalizableMessage displayMessage; |
| | |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.guitools.controlpanel.event; |
| | | |
| | | import java.util.EventObject; |
| | |
| | | * This class defines an event for the browser. It basically it is used to |
| | | * communicate between the BrowserController and the NodeRefresher classes. |
| | | * @author jvergara |
| | | * |
| | | */ |
| | | public class BrowserEvent extends EventObject |
| | | { |
| | | private static final long serialVersionUID = 6476274376887062526L; |
| | | |
| | | /** |
| | | * The different types of events that we can have. |
| | | * |
| | | */ |
| | | /** The different types of events that we can have. */ |
| | | public enum Type |
| | | { |
| | | /** |
| | | * Update of the entry started. |
| | | */ |
| | | /** Update of the entry started. */ |
| | | UPDATE_START, |
| | | /** |
| | | * Update of the entry ended. |
| | | */ |
| | | /** Update of the entry ended. */ |
| | | UPDATE_END, |
| | | /** |
| | | * Insert of children started. |
| | | */ |
| | | /** Insert of children started. */ |
| | | INSERT_CHILDREN_START, |
| | | /** |
| | | * Insert of children ended. |
| | | */ |
| | | /** Insert of children ended. */ |
| | | INSERT_CHILDREN_END, |
| | | /** |
| | | * The specified size limit (max number of children to be returned) in the |
| | | * BrowserController was reached. |
| | | */ |
| | | SIZE_LIMIT_REACHED |
| | | |
| | | }; |
| | | } |
| | | |
| | | private Type type; |
| | | |
| | |
| | | args.add("0"); |
| | | return args; |
| | | } |
| | | }; |
| | | } |
| | |
| | | { |
| | | return getCommandLinePath("backup"); |
| | | } |
| | | }; |
| | | } |
| | | } |
| | |
| | | Utilities.createImageIcon(IconPool.IMAGE_PATH+"/"+ocPaths[i], |
| | | getClass().getClassLoader())); |
| | | } |
| | | }; |
| | | } |
| | | |
| | | private String getServerName(ServerDescriptor server) |
| | | { |
| | |
| | | hmImages.put(classes[i], |
| | | Utilities.createImageIcon(IconPool.IMAGE_PATH+"/"+ocPaths[i])); |
| | | } |
| | | }; |
| | | } |
| | | |
| | | /** |
| | | * Specific class used to render the nodes in the tree. It uses specific |
| | | * icons for the nodes. |
| | | * |
| | | */ |
| | | /** Specific class used to render the nodes in the tree. It uses specific icons for the nodes. */ |
| | | protected class IndexTreeCellRenderer extends TreeCellRenderer |
| | | { |
| | | private ImageIcon readOnlyIndexIcon = |
| | |
| | | hmImages.put(classes[i], |
| | | Utilities.createImageIcon(IconPool.IMAGE_PATH+"/"+ocPaths[i])); |
| | | } |
| | | }; |
| | | /** |
| | | * Specific class used to render the nodes in the tree. It uses specific |
| | | * icons for the nodes. |
| | | * |
| | | */ |
| | | } |
| | | |
| | | /** Specific class used to render the nodes in the tree. It uses specific icons for the nodes. */ |
| | | protected class SchemaTreeCellRenderer extends TreeCellRenderer |
| | | { |
| | | private static final long serialVersionUID = -3390568254259441766L; |
| | |
| | | { |
| | | return getCommandLinePath("export-ldif"); |
| | | } |
| | | }; |
| | | } |
| | | } |
| | |
| | | CLOSE, |
| | | /** The dialog has no buttons. */ |
| | | NO_BUTTON |
| | | }; |
| | | } |
| | | |
| | | /** |
| | | * Constructor of the dialog. |
| | |
| | | { |
| | | return getCommandLinePath("restore"); |
| | | } |
| | | }; |
| | | } |
| | | } |
| | |
| | | "facsimiletelephonenumber"}); |
| | | hmOrdereredAttrNames.put("organization", new String[]{"o", "description"}); |
| | | hmOrdereredAttrNames.put("domain", new String[]{"dc", "description"}); |
| | | }; |
| | | } |
| | | |
| | | private LocalizableMessage NAME = INFO_CTRL_PANEL_NAME_LABEL.get(); |
| | | |
| | | /** |
| | | * Default constructor. |
| | | * |
| | | */ |
| | | /** Default constructor. */ |
| | | public SimplifiedViewEntryPanel() |
| | | { |
| | | super(); |
| | |
| | | private enum NewEventType |
| | | { |
| | | MOUSE_PRESSED, MOUSE_CLICKED, MOUSE_RELEASED |
| | | }; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | public void paintComponent(Graphics g) |
| | |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | | |
| | | }; |
| | | |
| | | |
| | | |
| | | /** |
| | | * The server-side constraint handler. |
| | | */ |
| | | /** The server-side constraint handler. */ |
| | | private class ServerHandler extends ServerConstraintHandler { |
| | | |
| | | /** Private constructor. */ |
| | |
| | | // No implementation required. |
| | | } |
| | | |
| | | |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isUsable(ServerManagedObject<?> managedObject, |
| | | Collection<LocalizableMessage> unacceptableReasons) throws ConfigException { |
| | |
| | | return true; |
| | | } |
| | | } |
| | | |
| | | }; |
| | | } |
| | | |
| | | /** The client-side constraint handler. */ |
| | | private final ClientConstraintHandler clientHandler = new ClientHandler(); |
| | |
| | | } |
| | | |
| | | /** The list of profile wrappers. */ |
| | | private final LinkedList<Wrapper> profiles = new LinkedList<>();; |
| | | private final LinkedList<Wrapper> profiles = new LinkedList<>(); |
| | | |
| | | /** The LDAP profile property table. */ |
| | | private final ManagedObjectDefinitionResource resource = |
| | |
| | | */ |
| | | public LocalizableMessage getUsage(PropertyDefinition<?> pd) { |
| | | return pd.accept(pimpl, null); |
| | | }; |
| | | |
| | | } |
| | | } |
| | |
| | | LOCKED_DOWN, |
| | | /** Storage has no resources to execute operations. */ |
| | | UNUSABLE |
| | | }; |
| | | } |
| | | |
| | | /** Hopefully resources are always in this state. */ |
| | | private static final StorageStatus WORKING = new StorageStatus(Code.WORKING, null); |
| | |
| | | = {31,29,31,30,31,30,31,31,30,31,30,31}; |
| | | |
| | | /** Task tab fields. */ |
| | | private static enum TaskTab {MINUTE, HOUR, DAY, MONTH, WEEKDAY}; |
| | | private static enum TaskTab {MINUTE, HOUR, DAY, MONTH, WEEKDAY} |
| | | |
| | | private static final int MINUTE_INDEX = 0; |
| | | private static final int HOUR_INDEX = 1; |
| | |
| | | // NOTE: this method is invoked via reflection. If you rename |
| | | // it be sure to modify the calls. |
| | | return null; |
| | | }; |
| | | } |
| | | |
| | | /** |
| | | * Given an attribute type name returns and locale sensitive |
| | |
| | | * |
| | | * @param name of an attribute type associated with the object |
| | | * class that represents this entry in the directory |
| | | * @return LocalizableMessage diaplay name |
| | | * @return LocalizableMessage display name |
| | | */ |
| | | public LocalizableMessage getAttributeDisplayName(String name) { |
| | | // Subclasses that are schedulable from the task interface |
| | | // should override this |
| | | // Subclasses that are schedulable from the task interface should override this |
| | | |
| | | // NOTE: this method is invoked via reflection. If you rename |
| | | // it be sure to modify the calls. |
| | |
| | | { |
| | | return RUN_NOW; |
| | | } |
| | | }; |
| | | } |
| | | |
| | | /** |
| | | * Default constructor. |
| | |
| | | * Public-Key Cryptography Standards 11 token. |
| | | */ |
| | | PKCS11 |
| | | }; |
| | | } |
| | | |
| | | private CertificateType type; |
| | | private String certNickName; |
| | |
| | | * Automatically generated data entries. |
| | | */ |
| | | AUTOMATICALLY_GENERATED |
| | | }; |
| | | } |
| | | |
| | | /** Default name of directory base DN. */ |
| | | static final String DEFAULT_DIRECTORY_BASE_DN = "dc=example,dc=com"; |