Package i2p.susi.dns
Class AddressbookBean
java.lang.Object
i2p.susi.dns.BaseBean
i2p.susi.dns.AddressbookBean
- Direct Known Subclasses:
NamingServiceBean
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected String
protected final LinkedList<String>
protected String
protected int
protected AddressBean[]
protected String
protected String
protected String
protected static final Comparator<AddressBean>
Fields inherited from class i2p.susi.dns.BaseBean
_context, action, lastSerial, PROP_PW_ENABLE, properties, serial
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Format a message about filtered addressbook size, and the number of displayed entries addressbook.jsp catches the case where the whole book is empty.getBegin()
protected int
getBook()
This always returns a valid book, non-null.getEnd()
protected int
Load addressbook and apply filter, returning messages about this.Perform actions, returning messages about this.int
boolean
boolean
boolean
protected boolean
Does the entries map contain only the lookup result, or must we index into it?boolean
Because the following from addressbook.jsp fails parsing in the new EL: javax.el.ELException: Failed to parse the expression Can't figure out why, so just replace it with book.validBook: <c:if test="${book.master || book.router || book.published || book.private}"> This always returns true anyway, because getBook() always returns a valid book.protected int
void
void
void
setDestination
(String destination) void
void
void
setHostname
(String hostname) void
setMarkedForDeletion
(String name) void
setResetDeletionMarks
(String dummy) void
void
setTrClass
(int trClass) protected int
-
Field Details
-
book
-
filter
-
search
-
hostname
-
destination
-
beginIndex
protected int beginIndex -
endIndex
protected int endIndex -
deletionMarks
-
sorter
-
entries
-
-
Constructor Details
-
AddressbookBean
public AddressbookBean()
-
-
Method Details
-
getSearch
-
setSearch
-
isHasFilter
public boolean isHasFilter() -
setTrClass
public void setTrClass(int trClass) -
getTrClass
public int getTrClass() -
isIsEmpty
public boolean isIsEmpty() -
isNotEmpty
public boolean isNotEmpty() -
getFileName
-
getDisplayName
-
getEntries
-
getBook
This always returns a valid book, non-null. -
setBook
-
getLoadBookMessages
Load addressbook and apply filter, returning messages about this. -
generateLoadMessage
Format a message about filtered addressbook size, and the number of displayed entries addressbook.jsp catches the case where the whole book is empty. -
getMessages
Perform actions, returning messages about this. -
getFilter
-
isValidBook
public boolean isValidBook()Because the following from addressbook.jsp fails parsing in the new EL: javax.el.ELException: Failed to parse the expression Can't figure out why, so just replace it with book.validBook: <c:if test="${book.master || book.router || book.published || book.private}"> This always returns true anyway, because getBook() always returns a valid book.- Returns:
- true
- Since:
- 0.9.28
-
setFilter
-
getDestination
-
setDestination
-
getHostname
-
setResetDeletionMarks
-
setMarkedForDeletion
-
setHostname
-
getBeginInt
protected int getBeginInt() -
getBegin
-
getResultBegin
- Returns:
- beginning index into results
- Since:
- 0.8.7
-
setBegin
-
getEndInt
protected int getEndInt() -
getEnd
-
getResultEnd
- Returns:
- ending index into results
- Since:
- 0.8.7
-
setEnd
-
isPrefiltered
protected boolean isPrefiltered()Does the entries map contain only the lookup result, or must we index into it?- Since:
- 0.8.7
-
resultSize
protected int resultSize()- Returns:
- the size of the lookup result
- Since:
- 0.8.7
-
totalSize
protected int totalSize()- Returns:
- the total size of the address book
- Since:
- 0.8.7
-