Package com.totvs.tjf.rac.maven.plugin
Class ProvisioningEndpointsRac
- java.lang.Object
-
- com.totvs.tjf.rac.maven.plugin.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 Summary
Constructors Constructor Description ProvisioningEndpointsRac()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearFile(File outputDir)
Clear the filevoid
execute()
Executes the inspection on the classes inside the classloader.void
sendResources()
Send all resources in JsonArray format.void
sendRoles()
Send all roles in JsonArray format.void
setClientId(String clientId)
Sets the RAC client id informed in theconfiguration
tag.void
setClientSecret(String clientSecret)
Sets the RAC client secret informed in theconfiguration
tag.void
setCulture(String culture)
Set the culturevoid
setExclusions(String exclusions)
Set the exclusionsvoid
setExportToJson(boolean exportToJson)
Sets if Json will be exported in theconfiguration
tag.void
setMultiModuleProject(boolean multi)
Set the project multi modulevoid
setOutputDirectory(File outputDirectory)
Sets the file name to export Json informed in theconfiguration
tag.void
setProject(org.apache.maven.project.MavenProject project)
Set the projectvoid
setRacUrl(String racUrl)
Sets the RAC Url informed in theconfiguration
tag.void
setTranslation(String translation)
Set the translation
-
-
-
Method Detail
-
setRacUrl
public void setRacUrl(String racUrl)
Sets the RAC Url informed in theconfiguration
tag.- Parameters:
racUrl
- RAC Url.
-
setClientId
public void setClientId(String clientId)
Sets the RAC client id informed in theconfiguration
tag.- Parameters:
clientId
- RAC client id.
-
setClientSecret
public void setClientSecret(String clientSecret)
Sets the RAC client secret informed in theconfiguration
tag.- Parameters:
clientSecret
- RAC client secret.
-
setExportToJson
public void setExportToJson(boolean exportToJson)
Sets if Json will be exported in theconfiguration
tag.- Parameters:
exportToJson
- RAC client secret.
-
setOutputDirectory
public void setOutputDirectory(File outputDirectory)
Sets the file name to export Json informed in theconfiguration
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
-
-