Package sk.iway.iwcm.components.news
Class NewsActionBean
java.lang.Object
sk.iway.iwcm.components.WebjetComponentAbstract
sk.iway.iwcm.components.news.NewsApp
sk.iway.iwcm.components.news.NewsActionBean
- All Implemented Interfaces:
net.sourceforge.stripes.action.ActionBean,WebjetComponentInterface,IncludeRequestWrapperInterface
public class NewsActionBean
extends NewsApp
implements net.sourceforge.stripes.action.ActionBean, IncludeRequestWrapperInterface
Include actionBean pre nove news komponenty
Title webjet7
Company Interway s.r.o. (www.interway.sk)
Copyright Interway s.r.o. (c) 2001-2015
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
Fields inherited from class sk.iway.iwcm.components.news.NewsApp
alsoSubGroups, ascending, checkDuplicity, contextClasses, docMode, groupIds, loadData, offset, order, pageSize, paging, perexGroup, perexGroupNot, perexNotRequired, publishType, subGroupsDepth, templateFields inherited from class sk.iway.iwcm.components.WebjetComponentAbstract
device, showForLoggedUser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCriteria(javax.servlet.http.HttpServletRequest request, Criteria... criteria) Umoznuje pridat dalsie kriteria, napr v JSP - obdoba whereSql v predoslych newskachvoidstatic UserDetailsgetAuthor(DocDetails doc) net.sourceforge.stripes.action.ActionBeanContextstatic StringgetEditAttributesInline(javax.servlet.http.HttpServletRequest request, DocDetails doc) static StringgetEditAttributesPopup(javax.servlet.http.HttpServletRequest request, DocDetails doc) Vrati atributy pre news komponentu na jej lahsiu editaciu, pouzije sa na kazdom news elemente v listeList<? extends DocDetails>intgetPage()getPaginator(Prop prop) intjavax.servlet.http.HttpServletRequestgetTag()getTags()intbooleanisDate()booleanbooleanisPerex()booleanisPlace()booleanbooleanisSelected(NewsTemplatesEntity entity) link(DocDetails doc) net.sourceforge.stripes.action.Resolutionnet.sourceforge.stripes.action.Resolutionnews()voidvoidvoidnet.sourceforge.stripes.action.ResolutionvoidsetAuthors(List<LabelValueDetails> authors) voidsetContext(net.sourceforge.stripes.action.ActionBeanContext context) voidsetDate(boolean date) voidvoidsetGroupIds(int[] groupIds) voidsetIncludeActualDoc(boolean includeActualDoc) voidsetNewsName(String newsName) voidsetNewsQuery(NewsQuery newsQuery) voidsetOrder(NewsQuery.OrderEnum order) voidsetPage(int page) voidsetPerex(boolean perex) voidsetPerexCrop(int perexCrop) voidsetPlace(boolean place) voidsetPublishType(NewsActionBean.PublishType publishType) voidsetRequestPerexGroupsName(String requestPerexGroupsName) voidsetReturnDocsWithAtributes(boolean returnDocsWithAtributes) voidvoidsetSearchAlsoProtectedPages(boolean searchAlsoProtectedPages) voidvoidsetTagClickLink(String tagClickLink) net.sourceforge.stripes.action.ResolutionsetTags()voidsetTags(List<LabelValueDetails> tags) Methods inherited from class sk.iway.iwcm.components.news.NewsApp
getAppOptions, getContextClasses, getContextClassesArr, getDocMode, getGroupIds, getNewsTemplatesRepository, getOffset, getOrder, getPageSize, getPerexGroup, getPerexGroupNot, getPublishType, getSubGroupsDepth, getTemplate, isAlsoSubGroups, isAscending, isCheckDuplicity, isLoadData, isPaging, isPerexNotRequired, setAlsoSubGroups, setAscending, setCheckDuplicity, setContextClasses, setDocMode, setGroupIds, setLoadData, setNewsTemplatesRepository, setOffset, setOrder, setPageSize, setPaging, setPerexGroup, setPerexGroupNot, setPerexNotRequired, setPublishType, setSubGroupsDepth, setTemplateMethods inherited from class sk.iway.iwcm.components.WebjetComponentAbstract
addCurrentValueToOptions, addCurrentValueToOptions, addOptions, getCacheMinutes, getDevice, getShowForLoggedUser, getViewFolder, init, init, initAppEditor, setCacheMinutes, setDevice, setShowForLoggedUser, setViewFolderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface sk.iway.iwcm.system.stripes.IncludeRequestWrapperInterface
prepareIncludeRequestWrapper, removeIncludeRequestWrapper
-
Constructor Details
-
NewsActionBean
public NewsActionBean()
-
-
Method Details
-
news
@DefaultHandler public net.sourceforge.stripes.action.Resolution news() -
getContext
public net.sourceforge.stripes.action.ActionBeanContext getContext()- Specified by:
getContextin interfacenet.sourceforge.stripes.action.ActionBean
-
setContext
public void setContext(net.sourceforge.stripes.action.ActionBeanContext context) - Specified by:
setContextin interfacenet.sourceforge.stripes.action.ActionBean
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest() -
getCurrentUser
-
loadTemplate
public net.sourceforge.stripes.action.Resolution loadTemplate() -
setTags
public net.sourceforge.stripes.action.Resolution setTags() -
setAuthors
public net.sourceforge.stripes.action.Resolution setAuthors() -
getNewsList
-
addCriteria
Umoznuje pridat dalsie kriteria, napr v JSP - obdoba whereSql v predoslych newskach- Parameters:
request-criteria-
-
setNewsName
-
setPerex
public void setPerex(boolean perex) -
setDate
public void setDate(boolean date) -
setPlace
public void setPlace(boolean place) -
setGroupIds
public void setGroupIds(int[] groupIds) -
setNewsQuery
-
setSearchAlsoProtectedPages
public void setSearchAlsoProtectedPages(boolean searchAlsoProtectedPages) -
isPerex
public boolean isPerex() -
getPage
public int getPage() -
setPage
public void setPage(int page) -
isDate
public boolean isDate() -
isPlace
public boolean isPlace() -
getRequestPerexGroupsName
-
setRequestPerexGroupsName
-
getPaginator
-
getTotalPages
public int getTotalPages() -
setReturnDocsWithAtributes
public void setReturnDocsWithAtributes(boolean returnDocsWithAtributes) -
getFilter
-
setFilter
-
getSearch
-
setSearch
-
getGroupIdsString
-
getPerexGroupString
-
getPerexGroupNotString
-
getPerexCrop
public int getPerexCrop() -
setPerexCrop
public void setPerexCrop(int perexCrop) -
setPublishType
-
setOrder
-
getHtmlOut
-
isSearchAlsoProtectedPages
public boolean isSearchAlsoProtectedPages() -
link
-
getTemplates
-
getVelocityProperties
-
getDocDetailsProperties
-
getGroupDetailsProperties
-
getPagingProperties
-
isSelected
-
getEditAttributesPopup
public static String getEditAttributesPopup(javax.servlet.http.HttpServletRequest request, DocDetails doc) Vrati atributy pre news komponentu na jej lahsiu editaciu, pouzije sa na kazdom news elemente v liste- Parameters:
request-doc-- Returns:
-
getEditAttributesInline
public static String getEditAttributesInline(javax.servlet.http.HttpServletRequest request, DocDetails doc) -
getAuthor
-
isIncludeActualDoc
public boolean isIncludeActualDoc() -
setIncludeActualDoc
public void setIncludeActualDoc(boolean includeActualDoc) -
clearList
public void clearList() -
getTagClickLink
-
setTagClickLink
-
getTags
-
setTags
-
getTag
-
setTag
-
getAuthors
-
setAuthors
-
getAuthor
-
setAuthor
-
prepareIncludeRequestWrapper
@Before(stages=BindingAndValidation) public void prepareIncludeRequestWrapper() -
removeIncludeRequestWrapper
@After(stages=BindingAndValidation) public void removeIncludeRequestWrapper()
-