public class AddressbookBean extends BaseBean
Modifier and Type | Field and Description |
---|---|
protected int |
beginIndex |
protected String |
book |
protected LinkedList<String> |
deletionMarks |
protected String |
destination |
protected int |
endIndex |
protected AddressBean[] |
entries |
protected String |
filter |
protected String |
hostname |
protected String |
search |
protected static Comparator<AddressBean> |
sorter |
_context, action, BASE_THEME_PATH, DEFAULT_THEME, lastSerial, PROP_PW_ENABLE, PROP_THEME_NAME, properties, RC_PROP_THEME_NAME, RC_PROP_UNIVERSAL_THEMING, serial
Constructor and Description |
---|
AddressbookBean() |
Modifier and Type | Method and Description |
---|---|
protected String |
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.
|
String |
getBegin() |
protected int |
getBeginInt() |
String |
getBook()
This always returns a valid book, non-null.
|
String |
getDestination() |
String |
getDisplayName() |
String |
getEnd() |
protected int |
getEndInt() |
AddressBean[] |
getEntries() |
String |
getFileName() |
String |
getFilter() |
String |
getHostname() |
String |
getLoadBookMessages()
Load addressbook and apply filter, returning messages about this.
|
String |
getMessages()
Perform actions, returning messages about this.
|
String |
getResultBegin() |
String |
getResultEnd() |
String |
getSearch() |
int |
getTrClass() |
boolean |
isHasFilter() |
boolean |
isIsEmpty() |
boolean |
isNotEmpty() |
protected boolean |
isPrefiltered()
Does the entries map contain only the lookup result,
or must we index into it?
|
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.
|
protected int |
resultSize() |
void |
setBegin(String s) |
void |
setBook(String book) |
void |
setDestination(String destination) |
void |
setEnd(String s) |
void |
setFilter(String filter) |
void |
setHostname(String hostname) |
void |
setMarkedForDeletion(String name) |
void |
setResetDeletionMarks(String dummy) |
void |
setSearch(String search) |
void |
setTrClass(int trClass) |
protected int |
totalSize() |
protected String book
protected String filter
protected String search
protected String hostname
protected String destination
protected int beginIndex
protected int endIndex
protected final LinkedList<String> deletionMarks
protected static final Comparator<AddressBean> sorter
protected AddressBean[] entries
public String getSearch()
public void setSearch(String search)
public boolean isHasFilter()
public void setTrClass(int trClass)
public int getTrClass()
public boolean isIsEmpty()
public boolean isNotEmpty()
public String getFileName()
public String getDisplayName()
public AddressBean[] getEntries()
public String getBook()
public void setBook(String book)
public String getLoadBookMessages()
protected String generateLoadMessage()
public String getMessages()
public String getFilter()
public boolean isValidBook()
public void setFilter(String filter)
public String getDestination()
public void setDestination(String destination)
public String getHostname()
public void setResetDeletionMarks(String dummy)
public void setMarkedForDeletion(String name)
public void setHostname(String hostname)
protected int getBeginInt()
public String getBegin()
public String getResultBegin()
public void setBegin(String s)
protected int getEndInt()
public String getEnd()
public String getResultEnd()
public void setEnd(String s)
protected boolean isPrefiltered()
protected int resultSize()
protected int totalSize()