Package org.apache.lenya.cms.task

Examples of org.apache.lenya.cms.task.ExecutionException


    Publication publication;
    try {
      publication = PublicationFactory.getPublication(objectModel);
    } catch (PublicationException e) {
      throw new ExecutionException(e);
    }
    Request request = ObjectModelHelper.getRequest(objectModel);

        initialize(parameters, publication, request);
  }
View Full Code Here


              log.debug("Identity found - enabling workflow handling.");
              Role[] roles;
              try {
                roles = PolicyAuthorizer.getRoles(request);
              } catch (AccessControlException e) {
                throw new ExecutionException(e);
              }
              setWorkflowAware(eventName, identity, roles);
            }
          }
        }
View Full Code Here

    Publication publication;
    try {
      publication = PublicationFactory.getPublication(objectModel);
    } catch (PublicationException e) {
      throw new ExecutionException(e);
    }
    Request request = ObjectModelHelper.getRequest(objectModel);

        initialize(parameters, publication, request);
  }
View Full Code Here

              log.debug("Identity found - enabling workflow handling.");
              Role[] roles;
              try {
                roles = PolicyAuthorizer.getRoles(request);
              } catch (AccessControlException e) {
                throw new ExecutionException(e);
              }
              setWorkflowAware(eventName, identity, roles);
            }
          }
        }
View Full Code Here

            export(new URL(serverURI), serverPort, publicationPath,
                getParameters().getParameter(PublishingEnvironment.PARAMETER_EXPORT_PATH), uris,
                getParameters().getParameter(PublishingEnvironment.PARAMETER_SUBSTITUTE_REGEXP),
                getParameters().getParameter(PublishingEnvironment.PARAMETER_SUBSTITUTE_REPLACEMENT));
        } catch (Exception e) {
            throw new ExecutionException(e);
        }
    }
View Full Code Here

                getParameters().getParameter(PublishingEnvironment.PARAMETER_TREE_LIVE_PATH),
                getParameters().getParameter(ResourcePublishingEnvironment.PARAMETER_RESOURCE_LIVE_PATH),
                getParameters().getParameter(PublishingEnvironment.PARAMETER_REPLICATION_PATH),
                sources);
        } catch (Exception e) {
            throw new ExecutionException(e);
        }
    }
View Full Code Here

                null, getParameters().getParameter(PublishingEnvironment.PARAMETER_LIVE_PATH),
                getParameters().getParameter(PublishingEnvironment.PARAMETER_TREE_LIVE_PATH), null,
                getParameters().getParameter(PublishingEnvironment.PARAMETER_REPLICATION_PATH),
                sources);
        } catch (Exception e) {
            throw new ExecutionException(e);
        }
    }
View Full Code Here

        String area;
        try {
            area = getParameters().getParameter(PARAMETER_DESTINATION_AREA);
            getPublication().copyDocumentToArea(document, area);
        } catch (Exception e) {
            throw new ExecutionException(e);
        }
    }
View Full Code Here

                String publicationId = getParameters().getParameter(Task.PARAMETER_PUBLICATION_ID);
                String servletContextPath =
                    getParameters().getParameter(Task.PARAMETER_SERVLET_CONTEXT);
                publication = PublicationFactory.getPublication(publicationId, servletContextPath);
            } catch (Exception e) {
                throw new ExecutionException(e);
            }
        }
        return publication;
    }
View Full Code Here

                        + "]");
            }
            try {
                FileUtil.copyFile(resources[i], destinationResource);
            } catch (IOException e) {
                throw new ExecutionException(e);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.lenya.cms.task.ExecutionException

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.