Class OpenProjectScriptService

  • All Implemented Interfaces:
    org.xwiki.script.service.ScriptService

    @Component
    @Named("openproject")
    @Singleton
    public class OpenProjectScriptService
    extends Object
    implements org.xwiki.script.service.ScriptService
    Since:
    1.0
    Version:
    $Id$
    • Constructor Detail

      • OpenProjectScriptService

        public OpenProjectScriptService()
    • Method Detail

      • isUserAuthorized

        public boolean isUserAuthorized​(String instanceName)
        Parameters:
        instanceName - the name of the Open Project instance configuration.
        Returns:
        whether the user was authorized to the configured Open Project instance or not.
        Since:
        1.0-rc-3
      • generateStyling

        public void generateStyling()
                             throws ProjectManagementException
        Generate the styling for the configured instances. Since this method will need to communicate with the configured instances and make http requests, it should be run in a separate thread.
        Throws:
        ProjectManagementException