public class AddUserLinkAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
protected DirectoryHelper |
_directoryHelper
The directory helper
|
private static int |
_ICO_REQUEST_TIMEOUT |
protected JSONUtils |
_jsonUtils
The JSON utils
|
protected LinkDAO |
_linkDAO
The DAO for
Link s |
protected SiteManager |
_siteManager
The site manager
|
protected UploadManager |
_uploadManager
The upload manager
|
protected UrlPreviewComponent |
_urlPreviewComponent
The url preview component
|
manager
EMPTY_MAP
Constructor and Description |
---|
AddUserLinkAction() |
Modifier and Type | Method and Description |
---|---|
private Map<String,Object> |
_createUserLink(Request request,
Map<String,Object> parameters) |
protected Upload |
_getLinkFavicon(String url,
UserIdentity user,
String userAgent)
Set the favicon of the link url
|
private void |
_handleTheme(Request request,
Map<String,Object> createParameters,
String siteName,
String lang) |
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager smanager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private static int _ICO_REQUEST_TIMEOUT
protected CurrentUserProvider _currentUserProvider
protected DirectoryHelper _directoryHelper
protected SiteManager _siteManager
protected UrlPreviewComponent _urlPreviewComponent
protected UploadManager _uploadManager
protected JSONUtils _jsonUtils
public AddUserLinkAction()
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
private void _handleTheme(Request request, Map<String,Object> createParameters, String siteName, String lang)
private Map<String,Object> _createUserLink(Request request, Map<String,Object> parameters)
protected Upload _getLinkFavicon(String url, UserIdentity user, String userAgent)
url
- the url of the faviconuser
- the useruserAgent
- The user agent