public class UserDirectoryPageResolver extends AbstractLogEnabled implements Component, Serviceable
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_ametysResolver
The ametys object resolver.
|
protected UserDirectoryPageHandler |
_pageHandler
The user directory page handler
|
static String |
ROLE
The avalon role.
|
Constructor and Description |
---|
UserDirectoryPageResolver() |
Modifier and Type | Method and Description |
---|---|
private String |
_getUserPath(Page userDirectoryRootPage,
Content userContent)
Get the path of a user content
|
UserPage |
getUserPage(Content userContent,
String siteName,
String sitemapName,
String contentTypeId)
Return the user page
|
UserPage |
getUserPage(Page userDirectoryRootPage,
Content userContent)
Return the user page
|
String |
getUserPageId(Page userDirectoryRootPage,
Content userContent)
Return the user page identifier
|
void |
service(ServiceManager serviceManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected AmetysObjectResolver _ametysResolver
protected UserDirectoryPageHandler _pageHandler
public UserDirectoryPageResolver()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
ServiceException
public UserPage getUserPage(Content userContent, String siteName, String sitemapName, String contentTypeId)
userContent
- the user page contentsiteName
- The current site name.sitemapName
- The current sitemap name.contentTypeId
- the content type idpublic UserPage getUserPage(Page userDirectoryRootPage, Content userContent)
userDirectoryRootPage
- the user directory root pageuserContent
- the user contentpublic String getUserPageId(Page userDirectoryRootPage, Content userContent)
userDirectoryRootPage
- the user directory root pageuserContent
- the user contentnull
if the user page does not existprivate String _getUserPath(Page userDirectoryRootPage, Content userContent)
userDirectoryRootPage
- The user directory root page where to look intouserContent
- The user contentnull
if the user page does not exist