@Scope(value=CONVERSATION) @Name(value="bookManager") public class BookManagerBean extends Object implements BookManager, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
BookManagerBean.BookInfo |
Modifier and Type | Field and Description |
---|---|
protected CoreSession |
documentManager |
protected org.jboss.seam.faces.FacesMessages |
facesMessages |
protected static String[] |
FIRSTNAMES |
protected List<javax.faces.model.SelectItem> |
keywordList |
protected static String[] |
LASTNAMES |
protected NavigationContext |
navigationContext |
protected ResourcesAccessor |
resourcesAccessor |
protected WebActions |
webActions |
Constructor and Description |
---|
BookManagerBean() |
Modifier and Type | Method and Description |
---|---|
void |
changeData() |
String |
duplicateSiblings() |
List<javax.faces.model.SelectItem> |
getAvailableKeywords() |
List<BookManagerBean.BookInfo> |
getBooksInFolder() |
String |
getContainerPath() |
String |
getFilter() |
String |
getFirstName() |
String |
getIsbn() |
List<String> |
getKeywords() |
String |
getLastName() |
String |
getParentTitle() |
int |
getRating() |
DocumentModelList |
getSearchResults() |
String |
getWizardPage() |
boolean |
hasFilter() |
void |
randomFirstName() |
void |
randomLastName() |
void |
resetKeywordValues() |
void |
setFilter(String newfilter) |
void |
setFirstName(String s) |
void |
setIsbn(String s) |
void |
setKeywords(List<String> keywords) |
void |
setLastName(String s) |
void |
setRating(int rating) |
String |
something(String param)
Method to demonstrate Seam Remoting.
|
String |
toWizardPage(String page) |
String |
validateWizard() |
void |
validation(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value) |
@In(create=true) protected transient NavigationContext navigationContext
@In(create=true) protected transient WebActions webActions
@In(create=true) protected transient CoreSession documentManager
@In(create=true) protected transient org.jboss.seam.faces.FacesMessages facesMessages
@In(create=true) protected transient ResourcesAccessor resourcesAccessor
protected List<javax.faces.model.SelectItem> keywordList
protected static String[] FIRSTNAMES
public BookManagerBean()
public String getParentTitle()
getParentTitle
in interface BookManager
public String getFirstName()
getFirstName
in interface BookManager
public void setFirstName(String s)
setFirstName
in interface BookManager
public String getLastName()
getLastName
in interface BookManager
public void setLastName(String s)
setLastName
in interface BookManager
public String getIsbn()
getIsbn
in interface BookManager
public void setIsbn(String s)
setIsbn
in interface BookManager
public int getRating()
getRating
in interface BookManager
public void setRating(int rating)
setRating
in interface BookManager
public List<String> getKeywords()
getKeywords
in interface BookManager
public void setKeywords(List<String> keywords)
setKeywords
in interface BookManager
public List<javax.faces.model.SelectItem> getAvailableKeywords()
getAvailableKeywords
in interface BookManager
@Observer(value="documentSelectionChanged", create=false) public void resetKeywordValues()
resetKeywordValues
in interface BookManager
public void randomFirstName()
randomFirstName
in interface BookManager
public void randomLastName()
randomLastName
in interface BookManager
public void changeData()
changeData
in interface BookManager
public void validation(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
validation
in interface BookManager
public DocumentModelList getSearchResults()
getSearchResults
in interface BookManager
public boolean hasFilter()
hasFilter
in interface BookManager
public String getFilter()
getFilter
in interface BookManager
public void setFilter(String newfilter)
setFilter
in interface BookManager
@WebRemote public String something(String param)
BookManager
The annotation has to be on the interface in EJB3 situation. Otherwise it has to be on the component implementation.
something
in interface BookManager
param
- some string, that is directly passed from the Javascript code.public String toWizardPage(String page)
toWizardPage
in interface BookManager
public String getWizardPage()
getWizardPage
in interface BookManager
public String validateWizard()
validateWizard
in interface BookManager
public List<BookManagerBean.BookInfo> getBooksInFolder()
getBooksInFolder
in interface BookManager
public String duplicateSiblings()
duplicateSiblings
in interface BookManager
public String getContainerPath()
Copyright © 2015 Nuxeo SA. All rights reserved.