java.lang.Object
org.codeability.sharing.plugins.api.UserPrincipal
data to identify or authorize a user.
- Author:
- Michael Breu
-
Constructor Summary
ConstructorsConstructorDescriptionempty constructor for JSON.UserPrincipal(String name, String gitLabAccessToken) creates a user principal to be used in context of this api -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidsetGitLabAccessToken(String gitLabAccessToken) void
-
Constructor Details
-
UserPrincipal
creates a user principal to be used in context of this api- Parameters:
name- the user name. Just for informationgitLabAccessToken- the gitlab access token
-
UserPrincipal
public UserPrincipal()empty constructor for JSON.
-
-
Method Details
-
getName
- Returns:
- an informative name of the user
-
setName
- Parameters:
name- the name to set
-
getGitLabAccessToken
- Returns:
- the oAuth2 access token of the current user. This may be used to load permissions.
-
setGitLabAccessToken
- Parameters:
gitLabAccessToken- the gitLabAccessToken to set
-