Interface BrowserNodeInfo
-
public interface BrowserNodeInfoInterface used in the LDAP entries browser code to deal with entries.
-
-
Field Summary
Fields Modifier and Type Field Description static intERROR_NONENo error happened.static intERROR_READING_ENTRYAnd error reading the entry occurred.static intERROR_SEARCHING_CHILDRENAn error occurred searching the children of the entry.static intERROR_SOLVING_REFERRALAn error following referrals occurred.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetErrorArg()Returns the argument associated to an error/exception.ExceptiongetErrorException()Returns the exception associated to the error.intgetErrorType()Returns the error detected while reading this entry.BasicNodegetNode()Returns the basic node associated with the node info.intgetNumSubOrdinates()Returns the value of numsubordinates for the entryString[]getObjectClassValues()Returns the object class value of the entry that the nodes represents.String[]getReferral()Returns the referrals attached to the displayed entry.TreePathgetTreePath()Returns the TreePath corresponding to the displayed entry.LDAPURLgetURL()URL of the displayed entry.booleanhasSubOrdinates()Returns the value of hassubordinates for the entry.booleanisRemote()Returns whether the displayed entry is not located on the current server.booleanisRootNode()Returns whether the displayed entry is the root node of the server (the dn="" entry)..booleanisSuffix()Returns whether the displayed entry is the top entry of a suffix.booleanrepresentsSameNode(BrowserNodeInfo node)Tells whether the node passed as parameter represents the same node as this one.
-
-
-
Field Detail
-
ERROR_NONE
static final int ERROR_NONE
No error happened.- See Also:
- Constant Field Values
-
ERROR_READING_ENTRY
static final int ERROR_READING_ENTRY
And error reading the entry occurred.- See Also:
- Constant Field Values
-
ERROR_SOLVING_REFERRAL
static final int ERROR_SOLVING_REFERRAL
An error following referrals occurred.- See Also:
- Constant Field Values
-
ERROR_SEARCHING_CHILDREN
static final int ERROR_SEARCHING_CHILDREN
An error occurred searching the children of the entry.- See Also:
- Constant Field Values
-
-
Method Detail
-
getURL
LDAPURL getURL()
URL of the displayed entry.- Returns:
- the URL of the displayed entry.
-
isSuffix
boolean isSuffix()
Returns whether the displayed entry is the top entry of a suffix.- Returns:
trueif the displayed entry is the top entry of a suffix,falseotherwise.
-
isRootNode
boolean isRootNode()
Returns whether the displayed entry is the root node of the server (the dn="" entry)..- Returns:
trueif the displayed entry is the root node of the server (the dn="" entry) andfalseotherwise.
-
isRemote
boolean isRemote()
Returns whether the displayed entry is not located on the current server. An entry is declared 'remote' when the host/port of getURL() is different from the host/port of the connection associated to the browser controller.- Returns:
trueif the displayed entry is not located on the current server,falseotherwise.
-
getNumSubOrdinates
int getNumSubOrdinates()
Returns the value of numsubordinates for the entry. -1 if the numsubordinates attribute is not defined.- Returns:
- the value of numsubordinates for the entry.
-
hasSubOrdinates
boolean hasSubOrdinates()
Returns the value of hassubordinates for the entry.- Returns:
- the value of hassubordinates for the entry.
-
getReferral
String[] getReferral()
Returns the referrals attached to the displayed entry. This is the value of the 'ref' attribute. Returnsnullif the attribute is not present.- Returns:
- the referrals attached to the displayed entry.
-
getErrorType
int getErrorType()
Returns the error detected while reading this entry.- Returns:
- the error detected while reading this entry.
-
getErrorException
Exception getErrorException()
Returns the exception associated to the error. Returnsnullif getErrorType() == ERROR_NONE.- Returns:
- the exception associated to the error.
-
getErrorArg
Object getErrorArg()
Returns the argument associated to an error/exception. Always null except when errorType == ERROR_SOLVING_REFERRAL, errorArg contains the String representing the faulty LDAP URL.- Returns:
- the argument associated to an error/exception.
-
getNode
BasicNode getNode()
Returns the basic node associated with the node info.- Returns:
- the basic node associated with the node info.
-
getTreePath
TreePath getTreePath()
Returns the TreePath corresponding to the displayed entry.- Returns:
- the TreePath corresponding to the displayed entry.
-
representsSameNode
boolean representsSameNode(BrowserNodeInfo node)
Tells whether the node passed as parameter represents the same node as this one.- Parameters:
node- the node.- Returns:
trueif the node passed as parameter represents the same node as this one andfalseotherwise.
-
getObjectClassValues
String[] getObjectClassValues()
Returns the object class value of the entry that the nodes represents.- Returns:
- the object class value of the entry that the nodes represents.
-
-