@Override
 public void actionPerformed(final ActionEvent event) {
   final StateToken token = session.getCurrentStateToken().copy().clearDocument();
   final String url =
       new Url(
               session.getSiteUrl() + FileConstants.EVENTSSERVLET,
               new UrlParam(FileConstants.TOKEN, token.toString()))
           .toString();
   NotifyUser.info(
       i18n.t("Calendar exporting"),
       i18n.t(
           "Open or use this address in your prefered calendar program for instance in your mobile: [%s]",
           TextUtils.generateHtmlLink(url, url, true)),
       ID,
       true);
 }
Esempio n. 2
0
 /**
  * Gets the container.
  *
  * @param userHash the user hash
  * @param stateToken the state token
  * @return the container
  * @throws ContentNotFoundException the content not found exception
  */
 @Authenticated(mandatory = false)
 @Authorizated(accessRolRequired = AccessRol.Viewer, actionLevel = ActionLevel.container)
 private Container getContainer(final String userHash, final StateToken stateToken)
     throws ContentNotFoundException {
   return containerManager.find(ContentUtils.parseId(stateToken.getFolder()));
 }