Package com.jalios.jcms.webpage
Class WebPageManager
java.lang.Object
com.jalios.jcms.webpage.WebPageManager
- All Implemented Interfaces:
JPropertiesListener
Manager for WebPage Publication type
- Since:
- jcms-9.0.4 and jcms-10.0.0
- Author:
- Kevin Bransard
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected List<org.apache.oro.text.regex.Pattern> -
Method Summary
Modifier and TypeMethodDescriptionstatic WebPageManagergetMatchingWebpageSet(String url, Member loggedMember, Workspace ws, boolean filterByAuthor, boolean checkRights) Returns a Set of matchingWebPagewith the same url as the given url, filtered on workspace, and logged member rightsgetMatchingWebPageSet(AbstractWebPage webpage, Member loggedMember, Workspace ws) Returns a Set of matchingWebPagewith the same url as the given webpage, filtered on workspace, and logged member rightsprotected voidvoidpropertiesChange(JProperties properties) Invoked after properties have been modified in JCMS and save on disk.booleanwebPageExists(String url, Workspace ws)
-
Field Details
-
patternList
-
checkPeriod
protected long checkPeriod
-
-
Method Details
-
getInstance
-
initPatterns
protected void initPatterns() -
propertiesChange
Description copied from interface:JPropertiesListenerInvoked after properties have been modified in JCMS and save on disk.You cannot alter the value received in parameters.
Note that properties parameter may be null, a limited set of site properties, or all site properties.
To check that a property has been modified, reload the "current" property instead using
channel.getPropertiesorchannel.getProperty.- Specified by:
propertiesChangein interfaceJPropertiesListener- Parameters:
properties- the properties which have been submitted to change
-
getMatchingWebPageSet
public Set<AbstractWebPage> getMatchingWebPageSet(AbstractWebPage webpage, Member loggedMember, Workspace ws) Returns a Set of matchingWebPagewith the same url as the given webpage, filtered on workspace, and logged member rights- Parameters:
webpage- theAbstractWebPagefrom which URL is retrieved, requiredloggedMember- theMemberto test read rights, requiredws- theWorkspaceto search matching webpage in- Returns:
- a Set of matching
WebPage
-
getMatchingWebpageSet
public Set<AbstractWebPage> getMatchingWebpageSet(String url, Member loggedMember, Workspace ws, boolean filterByAuthor, boolean checkRights) Returns a Set of matchingWebPagewith the same url as the given url, filtered on workspace, and logged member rights- Parameters:
url- the url to use to get matching webpageloggedMember- theMemberto test read rights on, requiredws- theWorkspaceto search matching webpage infilterByAuthor- if true, search for WebPage published by the specifiedMembercheckRights- if true, check read rights for givenMember- Returns:
- a Set of matching
WebPage
-
webPageExists
-
cleanURL
- Parameters:
url- the url to clean- Returns:
- a cleaned url (with removed parameters as described in jcms properties)
-
cleanURL
- Parameters:
url- the url to cleanmatcher- the matcher to apply on url- Returns:
- a cleaned url (with removed parameters as described in jcms properties)
-