@Service public class SecurityOperationsImpl extends Object implements SecurityOperations
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOGGER |
SECURITY_FEATURE_NAME| Constructor and Description |
|---|
SecurityOperationsImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
void |
generateAuthorizeAnnotations(org.springframework.roo.model.JavaType klass,
String methodName,
String roles,
String usernames)
Defines
RooSecurityAuthorizations annotation that include one or many
RooSecurityAuthorization annotations which will be used by
implementations to include PreAuthorize annotations
in service methods. |
void |
generateFilterAnnotations(org.springframework.roo.model.JavaType klass,
String methodName,
String roles,
String usernames,
String when)
Defines
RooSecurityFilters annotation that include one or many
RooSecurityFilter annotations which will be used by
implementations to include PreFilter or PostFilter annotations
in service methods. |
List<SecurityProvider> |
getAllSecurityProviders()
Defines getAllSecurityProviders operation that will be used by
implementations to get all security providers registered on the Spring
Roo Shell.
|
String |
getName() |
org.springframework.roo.project.PathResolver |
getPathResolver() |
org.springframework.roo.project.ProjectOperations |
getProjectOperations() |
org.springframework.roo.addon.pushin.PushInOperations |
getPushInOperations() |
String |
getSpringSecurityAnnotationValue(String roles,
String usernames)
Defines getSpringSecurityAnnotationValue method that will be used by
implementations to calculate the value of the Spring Security Annotations
|
org.springframework.roo.classpath.TypeLocationService |
getTypeLocationService() |
org.springframework.roo.classpath.TypeManagementService |
getTypeManagementService() |
void |
installSecurity(SecurityProvider type,
org.springframework.roo.project.maven.Pom module)
Defines install operation that will be used by implementations to install
the necessary components of Spring Security.
|
boolean |
isInstalledInModule(String moduleName) |
protected static final Logger LOGGER
protected void activate(org.osgi.service.component.ComponentContext context)
public void installSecurity(SecurityProvider type, org.springframework.roo.project.maven.Pom module)
SecurityOperationsinstallSecurity in interface SecurityOperationstype - SecurityProvider type that will be installmodule - Pom of the application module where Spring Security will be
installed.public void generateFilterAnnotations(org.springframework.roo.model.JavaType klass,
String methodName,
String roles,
String usernames,
String when)
SecurityOperationsRooSecurityFilters annotation that include one or many
RooSecurityFilter annotations which will be used by
implementations to include PreFilter or PostFilter annotations
in service methods.generateFilterAnnotations in interface SecurityOperationsklass - Class where include the annotationsmethodName - Method where apply the filterroles - Roles to apply by the filterusernames - Usernames to apply by the filterwhen - Indicate the type of filter 'PRE' (@PreFilter) or 'POST' (@PostFilter)public void generateAuthorizeAnnotations(org.springframework.roo.model.JavaType klass,
String methodName,
String roles,
String usernames)
SecurityOperationsRooSecurityAuthorizations annotation that include one or many
RooSecurityAuthorization annotations which will be used by
implementations to include PreAuthorize annotations
in service methods.generateAuthorizeAnnotations in interface SecurityOperationsklass - Class where include the annotationsmethodName - Method where apply the authorizationroles - Roles to apply by the authorizationusernames - Usernames that have authorizationpublic String getSpringSecurityAnnotationValue(String roles, String usernames)
SecurityOperationsgetSpringSecurityAnnotationValue in interface SecurityOperationsroles - separated comma list with the roles to include in Spring Security annotation.usernames - separated comma list with the usernames to include in Spring Security annotationpublic List<SecurityProvider> getAllSecurityProviders()
SecurityOperationsgetAllSecurityProviders in interface SecurityOperationspublic org.springframework.roo.project.ProjectOperations getProjectOperations()
public org.springframework.roo.classpath.TypeLocationService getTypeLocationService()
public org.springframework.roo.classpath.TypeManagementService getTypeManagementService()
public org.springframework.roo.project.PathResolver getPathResolver()
public org.springframework.roo.addon.pushin.PushInOperations getPushInOperations()
public String getName()
getName in interface org.springframework.roo.project.Featurepublic boolean isInstalledInModule(String moduleName)
isInstalledInModule in interface org.springframework.roo.project.FeatureCopyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.