Klasse UserPrincipal

java.lang.Object
org.codeability.sharing.plugins.api.UserPrincipal

public class UserPrincipal extends Object
data to identify or authorize a user.
Autor:
Michael Breu
  • Konstruktordetails

    • UserPrincipal

      public UserPrincipal(String name, String gitLabAccessToken)
      creates a user principal to be used in context of this api
      Parameter:
      name - the user name. Just for information
      gitLabAccessToken - the gitlab access token
    • UserPrincipal

      public UserPrincipal()
      empty constructor for JSON.
  • Methodendetails

    • getName

      public String getName()
      Gibt zurück:
      an informative name of the user
    • setName

      public void setName(String name)
      Parameter:
      name - the name to set
    • getGitLabAccessToken

      public String getGitLabAccessToken()
      Gibt zurück:
      the oAuth2 access token of the current user. This may be used to load permissions.
    • setGitLabAccessToken

      public void setGitLabAccessToken(String gitLabAccessToken)
      Parameter:
      gitLabAccessToken - the gitLabAccessToken to set