Class ProvisioningEndpointsRac


  • @RolesAllowed("")
    @PreAuthorize("")
    public final class ProvisioningEndpointsRac
    extends Object
    This class gets all found roles and resources and send them to RAC according to the informed configuration provided for this plugin.
    Author:
    Diego N. da Silveira
    • Constructor Detail

      • ProvisioningEndpointsRac

        public ProvisioningEndpointsRac()
    • Method Detail

      • setRacUrl

        public void setRacUrl​(String racUrl)
        Sets the RAC Url informed in the configuration tag.
        Parameters:
        racUrl - RAC Url.
      • setClientId

        public void setClientId​(String clientId)
        Sets the RAC client id informed in the configuration tag.
        Parameters:
        clientId - RAC client id.
      • setClientSecret

        public void setClientSecret​(String clientSecret)
        Sets the RAC client secret informed in the configuration tag.
        Parameters:
        clientSecret - RAC client secret.
      • setExportToJson

        public void setExportToJson​(boolean exportToJson)
        Sets if Json will be exported in the configuration tag.
        Parameters:
        exportToJson - RAC client secret.
      • setOutputDirectory

        public void setOutputDirectory​(File outputDirectory)
        Sets the file name to export Json informed in the configuration tag.
        Parameters:
        outputDirectory - output directory.
      • setProject

        public void setProject​(org.apache.maven.project.MavenProject project)
        Set the project
        Parameters:
        project - the project to set
      • setMultiModuleProject

        public void setMultiModuleProject​(boolean multi)
        Set the project multi module
        Parameters:
        multi - project multi module true or false
      • setExclusions

        public void setExclusions​(String exclusions)
        Set the exclusions
        Parameters:
        exclusions -
      • setTranslation

        public void setTranslation​(String translation)
        Set the translation
        Parameters:
        translation -
      • setCulture

        public void setCulture​(String culture)
        Set the culture
        Parameters:
        culture -
      • execute

        public void execute()
                     throws IOException
        Executes the inspection on the classes inside the classloader.
        Throws:
        IOException
      • sendRoles

        public void sendRoles()
        Send all roles in JsonArray format.
      • sendResources

        public void sendResources()
        Send all resources in JsonArray format.
      • clearFile

        public void clearFile​(File outputDir)
                       throws IOException
        Clear the file
        Parameters:
        outputDir - the diretory of the file
        Throws:
        IOException