Class AddUserLinkAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.plugins.linkdirectory.link.AddUserLinkAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
Adds a new user link in Ametys.
-
Field Summary
Modifier and TypeFieldDescriptionprotected CurrentUserProvider
The current user providerprotected DirectoryHelper
The directory helperprotected JSONUtils
The JSON utilsprotected LinkDAO
The DAO forLink
sprotected SiteManager
The site managerprotected UploadManager
The upload managerprotected UrlPreviewComponent
The url preview componentFields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Upload
_getLinkFavicon
(String url, UserIdentity user, String userAgent) Set the favicon of the link urlact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) void
service
(ServiceManager smanager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_linkDAO
The DAO forLink
s -
_currentUserProvider
The current user provider -
_directoryHelper
The directory helper -
_siteManager
The site manager -
_urlPreviewComponent
The url preview component -
_uploadManager
The upload manager -
_jsonUtils
The JSON utils
-
-
Constructor Details
-
AddUserLinkAction
public AddUserLinkAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-
_getLinkFavicon
Set the favicon of the link url- Parameters:
url
- the url of the faviconuser
- the useruserAgent
- The user agent- Returns:
- the favicon upload map
-