Package com.liferay.portlet

Examples of com.liferay.portlet.ActionRequestImpl


   */
  public void _deleteVersionWebAsset(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, User user, String webKeyEdit)
  throws Exception {

    // wraps request to get session object
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    WebAsset webAsset = (WebAsset) req.getAttribute(webKeyEdit);
 
    PermissionAPI perAPI = APILocator.getPermissionAPI();

View Full Code Here


   */
  public void _undeleteWebAsset(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, User user, String webKeyEdit)
  throws Exception {

    // wraps request to get session object
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    WebAsset webAsset = (WebAsset) req.getAttribute(webKeyEdit);

    // Checking permissions
    _checkUserPermissions(webAsset, user, PERMISSION_WRITE);
View Full Code Here

   * @throws Exception
   */
  public void _deleteWebAsset(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, User user, String webKeyEdit)
  throws Exception {
    // wraps request to get session object
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    WebAsset webAsset = (WebAsset) req.getAttribute(webKeyEdit);

    // Checking permissions
    _checkUserPermissions(webAsset, user, PERMISSION_WRITE);
View Full Code Here

   */
  public void _unPublishWebAsset(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, User user, String webKeyEdit)
  throws Exception {

    // wraps request to get session object
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    WebAsset webAsset = (WebAsset) req.getAttribute(webKeyEdit);

    // Checking permissions
    _checkUserPermissions(webAsset, user, PERMISSION_WRITE);
View Full Code Here

   */
  public void _unLockWebAsset(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, User user, String webKey)
  throws Exception {

    // wraps request to get session object
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    WebAsset webAsset = (WebAsset) req.getAttribute(webKey);

    // Checking permissions
    _checkUserPermissions(webAsset, user, PERMISSION_READ);
View Full Code Here

      String webKey) throws Exception {

    Logger.debug(this, "I'm moving the webasset");

    // wraps request to get session object
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    // gets the current container being edited from the request object
    WebAsset webAsset = (WebAsset) req.getAttribute(webKey);
    Identifier identifier = com.dotmarketing.business.APILocator.getIdentifierAPI().find(webAsset);
View Full Code Here

  public void _publishWebAsset(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, User user, String formWebKey)
  throws WebAssetException, Exception {
    try
    {
      // wraps request to get session object
      ActionRequestImpl reqImpl = (ActionRequestImpl) req;
      HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

      WebAsset webAsset = (WebAsset) req.getAttribute(formWebKey);
      Logger.debug(this, "WEB ASSET " + webAsset.getType() + " TO PUBLISH=" + webAsset.getInode());
      ActivityLogger.logInfo(this.getClass(), "Publish WebAsset action", "User " + user.getPrimaryKey() + " publishing" + webAsset.getType()+" named "+webAsset.getTitle(), HostUtil.hostNameUtil(req, _getUser(req)));
View Full Code Here

   */
  protected Folder _editWebAsset(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, User user, String webKey)
  throws Exception {

    // wraps request to get session object
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    WebAsset webAsset = (WebAsset) req.getAttribute(webKey);

    // Checking permissions
    _checkUserPermissions(webAsset, user, PERMISSION_READ);
View Full Code Here

   * @throws Exception
   */
  protected void _sendToReferral(ActionRequest req, ActionResponse res, String referer) throws Exception {

        // Getting the http request
        ActionRequestImpl reqImpl = (ActionRequestImpl) req;
        HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    String redirect = req.getParameter("redirect");

    if (UtilMethods.isSet(referer)) {
      Logger.debug(this, "\n\nGoing to redirect to referer: " + referer);
View Full Code Here

 
 
    public void processAction(ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req,
        ActionResponse res) throws Exception {
       
      ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();
      String cmd = httpReq.getParameter(Constants.CMD);
        Logger.debug(this, "\n\n***********cmd = " + cmd + "***");
        String languageId = httpReq.getParameter("id");
        Logger.debug(this, "id ="+languageId+"*********");
       
View Full Code Here

TOP

Related Classes of com.liferay.portlet.ActionRequestImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.