Class NodeRefresher
- java.lang.Object
-
- org.opends.guitools.controlpanel.browser.AbstractNodeTask
-
- org.opends.guitools.controlpanel.browser.NodeRefresher
-
- All Implemented Interfaces:
Runnable
public class NodeRefresher extends AbstractNodeTask
The class that is in charge of doing the LDAP searches required to update a node: search the local entry, detect if it has children, retrieve the attributes required to render the node, etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNodeRefresher.StateThe enumeration containing all the states the refresher can have.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SearchResultEntry>getChildEntries()Returns the child entries of the node.SearchResultEntrygetDisplayedEntry()Returns the displayed entry in the browser.LDAPURLgetDisplayedUrl()Returns the LDAP URL of the displayed entry in the browser.ExceptiongetException()Returns the exception that occurred during the processing.ObjectgetExceptionArg()Returns the argument of the exception that occurred during the processing.SearchResultEntrygetLocalEntry()Returns the local entry the refresher is handling.SearchResultEntrygetRemoteEntry()Returns the remote entry for the node.LDAPURLgetRemoteUrl()Returns the URL of the remote entry.booleanisDifferential()Returns whether this refresher object is working on differential mode or not.booleanisInFinalState()Returns whether the refresh is over or not.booleanisLeafNode()Tells whether the node is a leaf or not.voidrun()The method that actually does the refresh.-
Methods inherited from class org.opends.guitools.controlpanel.browser.AbstractNodeTask
cancel, getNode, isCanceled
-
-
-
-
Method Detail
-
getLocalEntry
public SearchResultEntry getLocalEntry()
Returns the local entry the refresher is handling.- Returns:
- the local entry the refresher is handling.
-
getRemoteEntry
public SearchResultEntry getRemoteEntry()
Returns the remote entry for the node. It will benullif the entry is not a referral.- Returns:
- the remote entry for the node.
-
getRemoteUrl
public LDAPURL getRemoteUrl()
Returns the URL of the remote entry. It will benullif the entry is not a referral.- Returns:
- the URL of the remote entry.
-
isLeafNode
public boolean isLeafNode()
Tells whether the node is a leaf or not.- Returns:
trueif the node is a leaf andfalseotherwise.
-
getChildEntries
public List<SearchResultEntry> getChildEntries()
Returns the child entries of the node.- Returns:
- the child entries of the node.
-
isDifferential
public boolean isDifferential()
Returns whether this refresher object is working on differential mode or not.- Returns:
trueif the refresher is working on differential mode andfalseotherwise.
-
getException
public Exception getException()
Returns the exception that occurred during the processing. It returnsnullif no exception occurred.- Returns:
- the exception that occurred during the processing.
-
getExceptionArg
public Object getExceptionArg()
Returns the argument of the exception that occurred during the processing. It returnsnullif no exception occurred or if the exception has no arguments.- Returns:
- the argument exception that occurred during the processing.
-
getDisplayedEntry
public SearchResultEntry getDisplayedEntry()
Returns the displayed entry in the browser. This depends on the visualization options in the BrowserController.- Returns:
- the remote entry if the entry is a referral and the BrowserController is following referrals and the local entry otherwise.
-
getDisplayedUrl
public LDAPURL getDisplayedUrl()
Returns the LDAP URL of the displayed entry in the browser. This depends on the visualization options in the BrowserController.- Returns:
- the remote entry LDAP URL if the entry is a referral and the BrowserController is following referrals and the local entry LDAP URL otherwise.
-
isInFinalState
public boolean isInFinalState()
Returns whether the refresh is over or not.- Returns:
trueif the refresh is over andfalseotherwise.
-
run
public void run()
The method that actually does the refresh.- Specified by:
runin interfaceRunnable- Specified by:
runin classAbstractNodeTask
-
-