Add Javadoc and fix typo
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
This commit is contained in:
@@ -203,90 +203,166 @@ public class RepositoryApplicationConfiguration extends JpaBaseConfiguration {
|
|||||||
return new MultiTenantJpaTransactionManager();
|
return new MultiTenantJpaTransactionManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaSystemManagement} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link SystemManagement}
|
||||||
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public SystemManagement systemManagement() {
|
public SystemManagement systemManagement() {
|
||||||
return new JpaSystemManagement();
|
return new JpaSystemManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaReportManagement} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link ReportManagement}
|
||||||
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public ReportManagement reportManagement() {
|
public ReportManagement reportManagement() {
|
||||||
return new JpaReportManagement();
|
return new JpaReportManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaDistributionSetManagement} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link DistributionSetManagement}
|
||||||
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public DistributionSetManagement distributionSetManagement() {
|
public DistributionSetManagement distributionSetManagement() {
|
||||||
return new JpaDistributionSetManagement();
|
return new JpaDistributionSetManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaTenantStatsManagement} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link TenantStatsManagement}
|
||||||
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public TenantStatsManagement tenantStatsManagement() {
|
public TenantStatsManagement tenantStatsManagement() {
|
||||||
return new JpaTenantStatsManagement();
|
return new JpaTenantStatsManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaTenantConfigurationManagement} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link TenantConfigurationManagement}
|
||||||
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public TenantConfigurationManagement tenantConfigurationManagement() {
|
public TenantConfigurationManagement tenantConfigurationManagement() {
|
||||||
return new JpaTenantConfigurationManagement();
|
return new JpaTenantConfigurationManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaTenantConfigurationManagement} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link TenantConfigurationManagement}
|
||||||
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public TargetManagement targetManagement() {
|
public TargetManagement targetManagement() {
|
||||||
return new JpaTargetManagement();
|
return new JpaTargetManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaTargetFilterQueryManagement} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link TargetFilterQueryManagement}
|
||||||
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public TargetFilterQueryManagement targetFilterQueryManagement() {
|
public TargetFilterQueryManagement targetFilterQueryManagement() {
|
||||||
return new JpaTargetFilterQueryManagement();
|
return new JpaTargetFilterQueryManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaTagManagement} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link TagManagement}
|
||||||
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public TagManagement tagManagement() {
|
public TagManagement tagManagement() {
|
||||||
return new JpaTagManagement();
|
return new JpaTagManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaSoftwareManagement} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link SoftwareManagement}
|
||||||
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public SoftwareManagement softwareManagement() {
|
public SoftwareManagement softwareManagement() {
|
||||||
return new JpaSoftwareManagement();
|
return new JpaSoftwareManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaRolloutManagement} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link RolloutManagement}
|
||||||
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public RolloutManagement rolloutManagement() {
|
public RolloutManagement rolloutManagement() {
|
||||||
return new JpaRolloutManagement();
|
return new JpaRolloutManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaRolloutGroupManagement} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link RolloutGroupManagement}
|
||||||
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public RolloutGroupManagement rolloutGroupManagement() {
|
public RolloutGroupManagement rolloutGroupManagement() {
|
||||||
return new JpaRolloutGroupManagement();
|
return new JpaRolloutGroupManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaDeploymentManagement} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link DeploymentManagement}
|
||||||
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public DeploymentManagement deploymentManagement() {
|
public DeploymentManagement deploymentManagement() {
|
||||||
return new JpaDeploymentManagement();
|
return new JpaDeploymentManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaControllerManagement} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link ControllerManagement}
|
||||||
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public ControllerManagement controllerManagement() {
|
public ControllerManagement controllerManagement() {
|
||||||
return new JpaControllerManagement();
|
return new JpaControllerManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaArtifactManagement} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link ArtifactManagement}
|
||||||
|
*/
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public ArtifactManagement artifactManagement() {
|
public ArtifactManagement artifactManagement() {
|
||||||
return new JpaArtifactManagement();
|
return new JpaArtifactManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link JpaEntityFactory} bean.
|
||||||
|
*
|
||||||
|
* @return a new {@link EntityFactory}
|
||||||
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean
|
@ConditionalOnMissingBean
|
||||||
public EntityFactory entityFactory() {
|
public EntityFactory entityFactory() {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class SpringSecurityAuditorAware implements AuditorAware<String> {
|
|||||||
|
|
||||||
final Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
|
final Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
|
||||||
|
|
||||||
if (isAuthentifactionInvalid(authentication)) {
|
if (isAuthenticationInvalid(authentication)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ public class SpringSecurityAuditorAware implements AuditorAware<String> {
|
|||||||
return authentication.getPrincipal().toString();
|
return authentication.getPrincipal().toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isAuthentifactionInvalid(final Authentication authentication) {
|
private static boolean isAuthenticationInvalid(final Authentication authentication) {
|
||||||
return authentication == null || !authentication.isAuthenticated() || authentication.getPrincipal() == null;
|
return authentication == null || !authentication.isAuthenticated() || authentication.getPrincipal() == null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user