public interface SecurityOperations
extends org.springframework.roo.project.Feature
SecurityOperationsImpl.| Modifier and Type | Field and Description |
|---|---|
static String |
SECURITY_FEATURE_NAME |
| Modifier and Type | Method and Description |
|---|---|
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 |
getSpringSecurityAnnotationValue(String roles,
String usernames)
Defines getSpringSecurityAnnotationValue method that will be used by
implementations to calculate the value of the Spring Security Annotations
|
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.
|
static final String SECURITY_FEATURE_NAME
void installSecurity(SecurityProvider type, org.springframework.roo.project.maven.Pom module)
type - SecurityProvider type that will be installmodule - Pom of the application module where Spring Security will be
installed.List<SecurityProvider> getAllSecurityProviders()
String getSpringSecurityAnnotationValue(String roles, String usernames)
roles - separated comma list with the roles to include in Spring Security annotation.usernames - separated comma list with the usernames to include in Spring Security annotationvoid generateFilterAnnotations(org.springframework.roo.model.JavaType klass,
String methodName,
String roles,
String usernames,
String when)
RooSecurityFilters annotation that include one or many
RooSecurityFilter annotations which will be used by
implementations to include PreFilter or PostFilter annotations
in service methods.klass - 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)void generateAuthorizeAnnotations(org.springframework.roo.model.JavaType klass,
String methodName,
String roles,
String usernames)
RooSecurityAuthorizations annotation that include one or many
RooSecurityAuthorization annotations which will be used by
implementations to include PreAuthorize annotations
in service methods.klass - Class where include the annotationsmethodName - Method where apply the authorizationroles - Roles to apply by the authorizationusernames - Usernames that have authorizationCopyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.