Add Source Code Linter Pipeline
This commit is contained in:
parent
0d0e7140c4
commit
d252f6ef50
313 changed files with 36277 additions and 0 deletions
20
screwdriver-3.5.6/box/snippets/java/UserContext.java
Normal file
20
screwdriver-3.5.6/box/snippets/java/UserContext.java
Normal file
|
@ -0,0 +1,20 @@
|
|||
package +zoccolo+.web.authentication;
|
||||
|
||||
import +beanposition+.+bean+;
|
||||
|
||||
public interface UserContext {
|
||||
|
||||
/**
|
||||
* Gets the currently logged in {@link +bean+} or null if there is no authenticated user.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
+bean+ getCurrentUser();
|
||||
|
||||
/**
|
||||
* Sets the currently logged in {@link +bean+}.
|
||||
* @param user the logged in {@link +bean+}. Cannot be null.
|
||||
* @throws IllegalArgumentException if the {@link +bean+} is null.
|
||||
*/
|
||||
void setCurrentUser(+bean+ user);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue