Skip to content

cabaceira/alfresco-java-code-executer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Overview

AJCE is Alfresco module that allows remote execution of an arbitrary Java class. AJCE is just a webscript that receives Java byte-code as a request payload, loads this class and executes it. Use-cases are similar to JS Console ones but for pretty complex cases when required JS API is not available.

Installation

AJCE may be installed as a regular Alfresco JAR module. Keep in mind that it's disabled by default, thus must be explicitly enabled via alfresco-global.properties.

Usage

There are actually two ways of using AJCE. The most straight forward one is to submit a request with a proper payload:

curl                                             \
    -X POST                                      \
    -u admin:password                            \
    --data-binary @PATH_TO_CLASS_FILE            \
    -H 'Content-Type: application/octect-stream' \
    http://localhost:8080/alfresco/s/api/ajce

A bit more convenient way is to use supplied Maven plugin. For more details look at the example-project.

Downloads

Module and maven plugins builds are automatically published to nexus.itdhq.com by Travis CI. To download follow links below:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%