public class AddressbookBean extends BaseBean
| Modifier and Type | Field and Description |
|---|---|
protected int |
beginIndex
Beginning index for pagination
|
protected String |
book
The address book name
|
protected String |
category
The category filter string
|
protected LinkedList<String> |
deletionMarks
List of entries marked for deletion
|
protected String |
destination
The destination
|
protected int |
endIndex
Ending index for pagination
|
protected AddressBean[] |
entries
Array of address entries
|
protected String |
filter
The filter string
|
protected String |
hostname
The hostname
|
protected String |
search
The search string
|
protected static Comparator<AddressBean> |
sorter
Comparator for sorting addresses
|
_context, action, lastSerial, method, PROP_PW_ENABLE, properties, serial| Constructor and Description |
|---|
AddressbookBean()
Default constructor.
|
| 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()
Returns the beginning index as string.
|
protected int |
getBeginInt()
Returns the beginning index as integer.
|
String |
getBook()
This always returns a valid book, non-null.
|
String |
getCategoryFilter()
Returns the category filter string.
|
String |
getDestination()
Returns the destination string.
|
String |
getDisplayName()
Returns the display name for the address book.
|
String |
getEnd()
Returns the ending index as string.
|
protected int |
getEndInt()
Returns the ending index as integer.
|
AddressBean[] |
getEntries()
Returns the address entries.
|
String |
getFileName()
Returns the file name for the address book.
|
String |
getFilter()
Returns the filter string.
|
String |
getHostname()
Returns the hostname string.
|
String |
getLoadBookMessages()
Load addressbook and apply filter, returning messages about this.
|
String |
getMessages()
Perform actions, returning messages about this.
|
int |
getPageBegin()
Gets the beginning index into results for display purposes.
|
String |
getResultBegin()
Gets the beginning index into results.
|
String |
getResultEnd()
Gets ending index into results.
|
String |
getSearch()
Returns the search string.
|
protected int |
getTotalFilteredCount()
Gets the total count of filtered results for pagination display.
|
int |
getTrClass()
Gets the table row class.
|
boolean |
isHasFilter()
Returns whether a filter is active.
|
boolean |
isIsEmpty()
Returns whether the address book is empty.
|
boolean |
isNotEmpty()
Returns whether the address book is not empty.
|
protected boolean |
isPrefiltered()
Checks if entries are pre-filtered.
|
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:
|
protected int |
resultSize()
Gets the size of the lookup result.
|
void |
setBegin(String s)
Sets the beginning index.
|
void |
setBook(String book)
Sets the book name.
|
void |
setDestination(String destination)
Sets the destination string.
|
void |
setEnd(String s)
Sets the ending index.
|
void |
setFilter(String filter)
Sets the filter string.
|
void |
setHostname(String hostname)
Sets the hostname string.
|
void |
setMarkedForDeletion(String name)
Marks an entry for deletion.
|
void |
setResetDeletionMarks(String dummy)
Resets the deletion marks.
|
void |
setSearch(String s)
Sets the search string.
|
void |
setTrClass(int trClass)
Sets the table row class.
|
protected int |
totalSize()
Gets the total size of the address book.
|
_t, _t, _t, addressbookDir, configFile, debug, getAction, getSerial, getTheme, getThemeName, getThemes, isOverrideCssActive, loadConfig, ngettext, reload, setAction, setSerial, storeMethod, useSoraFont, warnprotected int beginIndex
protected String book
protected String category
protected final LinkedList<String> deletionMarks
protected String destination
protected int endIndex
protected AddressBean[] entries
protected String filter
protected String hostname
protected String search
protected static final Comparator<AddressBean> sorter
protected String generateLoadMessage()
public String getBegin()
protected int getBeginInt()
public String getBook()
public String getCategoryFilter()
public String getDestination()
public String getDisplayName()
public String getEnd()
protected int getEndInt()
public AddressBean[] getEntries()
public String getFileName()
public String getFilter()
public String getHostname()
public String getLoadBookMessages()
public String getMessages()
public int getPageBegin()
public String getResultBegin()
public String getResultEnd()
public String getSearch()
protected int getTotalFilteredCount()
public int getTrClass()
public boolean isHasFilter()
public boolean isIsEmpty()
public boolean isNotEmpty()
protected boolean isPrefiltered()
public boolean isValidBook()
<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()
public void setBegin(String s)
s - the beginning index as stringpublic void setBook(String book)
book - the book name to setpublic void setDestination(String destination)
destination - the destination string to setpublic void setEnd(String s)
s - the ending index as stringpublic void setFilter(String filter)
filter - filter string to setpublic void setHostname(String hostname)
hostname - the hostname to setpublic void setMarkedForDeletion(String name)
name - the name to mark for deletionpublic void setResetDeletionMarks(String dummy)
dummy - dummy parameterpublic void setSearch(String s)
s - the search string to setpublic void setTrClass(int trClass)
trClass - table row classprotected int totalSize()