public class SearchSitesAction extends ServiceableAction
Modifier and Type | Class and Description |
---|---|
protected class |
SearchSitesAction.SiteTitleExpression
Site title expression
|
Modifier and Type | Field and Description |
---|---|
protected I18nUtils |
_i18nUtils
I18N Utils
|
protected AmetysObjectResolver |
_resolver
Ametys resolver
|
protected RightManager |
_rightManager
Ametys resolver
|
protected SiteManager |
_siteManager
The site manager
|
protected SiteTypesExtensionPoint |
_siteTypesEP
The site types EP
|
protected CurrentUserProvider |
_userProvider
User provider
|
manager
EMPTY_MAP
Constructor and Description |
---|
SearchSitesAction() |
Modifier and Type | Method and Description |
---|---|
private long |
_sharedContentsSize(Site site,
String currentSiteName) |
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
protected boolean |
canRead(Site site,
Request request)
Determines if the current user has a read access on site
|
void |
service(ServiceManager smanager) |
protected Map<String,Object> |
site2json(Request request,
Site site,
String currentSiteName,
boolean readAccessOnly,
boolean sharedSitesOnly)
Convert page to JSON object
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected SiteManager _siteManager
protected SiteTypesExtensionPoint _siteTypesEP
protected I18nUtils _i18nUtils
protected AmetysObjectResolver _resolver
protected RightManager _rightManager
protected CurrentUserProvider _userProvider
public SearchSitesAction()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected Map<String,Object> site2json(Request request, Site site, String currentSiteName, boolean readAccessOnly, boolean sharedSitesOnly)
request
- the requestsite
- The site to convertcurrentSiteName
- the current site namereadAccessOnly
- true to get site on read access onlysharedSitesOnly
- true to get shared site onlyprivate long _sharedContentsSize(Site site, String currentSiteName)