org.wso2.carbon.appfactory.gitblit.oauth.oauth2
Class AppFactoryGitBlitAuthenticationProvider
java.lang.Object
com.gitblit.auth.AuthenticationProvider
com.gitblit.auth.AuthenticationProvider.UsernamePasswordAuthenticationProvider
org.wso2.carbon.appfactory.gitblit.oauth.oauth2.AppFactoryGitBlitAuthenticationProvider
- All Implemented Interfaces:
- com.gitblit.IUserService
public class AppFactoryGitBlitAuthenticationProvider
- extends com.gitblit.auth.AuthenticationProvider.UsernamePasswordAuthenticationProvider
- implements com.gitblit.IUserService
| Nested classes/interfaces inherited from class com.gitblit.auth.AuthenticationProvider |
com.gitblit.auth.AuthenticationProvider.NullProvider, com.gitblit.auth.AuthenticationProvider.UsernamePasswordAuthenticationProvider |
| Fields inherited from class com.gitblit.auth.AuthenticationProvider |
baseFolder, logger, NULL_PROVIDER, runtimeManager, serviceName, settings, userManager |
| Methods inherited from class com.gitblit.auth.AuthenticationProvider.UsernamePasswordAuthenticationProvider |
stop |
| Methods inherited from class com.gitblit.auth.AuthenticationProvider |
getFileOrFolder, getServiceName, setCookie, setup, toString, updateTeam, updateUser |
| Methods inherited from interface com.gitblit.IUserService |
toString |
AppFactoryGitBlitAuthenticationProvider
public AppFactoryGitBlitAuthenticationProvider()
getAppFactoryAuthenticationClient
public AppFactoryAuthenticationClient getAppFactoryAuthenticationClient()
getConfiguration
public GitBlitConfiguration getConfiguration()
setConfiguration
public void setConfiguration(GitBlitConfiguration configuration)
getRepositoryAuthorizationClient
public AppFactoryRepositoryAuthorizationClient getRepositoryAuthorizationClient()
getUserAdminServiceClient
public UserAdminServiceClient getUserAdminServiceClient()
setup
public void setup()
- Specified by:
setup in class com.gitblit.auth.AuthenticationProvider
authenticate
public com.gitblit.models.UserModel authenticate(String username,
char[] password)
- Specified by:
authenticate in class com.gitblit.auth.AuthenticationProvider
getAccountType
public com.gitblit.Constants.AccountType getAccountType()
- Specified by:
getAccountType in class com.gitblit.auth.AuthenticationProvider
supportsCredentialChanges
public boolean supportsCredentialChanges()
- Specified by:
supportsCredentialChanges in class com.gitblit.auth.AuthenticationProvider
supportsDisplayNameChanges
public boolean supportsDisplayNameChanges()
- Specified by:
supportsDisplayNameChanges in class com.gitblit.auth.AuthenticationProvider
supportsEmailAddressChanges
public boolean supportsEmailAddressChanges()
- Specified by:
supportsEmailAddressChanges in class com.gitblit.auth.AuthenticationProvider
supportsTeamMembershipChanges
public boolean supportsTeamMembershipChanges()
- Specified by:
supportsTeamMembershipChanges in class com.gitblit.auth.AuthenticationProvider
getAppFactoryApplicationName
public static String getAppFactoryApplicationName(String repositoryName)
- Method to get app factory application name from gitblit repository name
- Parameters:
repositoryName -
- Returns:
setup
public void setup(com.gitblit.manager.IRuntimeManager iRuntimeManager)
- Specified by:
setup in interface com.gitblit.IUserService
getCookie
public String getCookie(com.gitblit.models.UserModel model)
- Specified by:
getCookie in interface com.gitblit.IUserService
getUserModel
public com.gitblit.models.UserModel getUserModel(char[] chars)
- Specified by:
getUserModel in interface com.gitblit.IUserService
getUserModel
public com.gitblit.models.UserModel getUserModel(String username)
- Specified by:
getUserModel in interface com.gitblit.IUserService
updateUserModel
public boolean updateUserModel(com.gitblit.models.UserModel model)
- Specified by:
updateUserModel in interface com.gitblit.IUserService
updateUserModels
public boolean updateUserModels(Collection<com.gitblit.models.UserModel> models)
- Specified by:
updateUserModels in interface com.gitblit.IUserService
updateUserModel
public boolean updateUserModel(String username,
com.gitblit.models.UserModel model)
- Specified by:
updateUserModel in interface com.gitblit.IUserService
deleteUserModel
public boolean deleteUserModel(com.gitblit.models.UserModel model)
- Specified by:
deleteUserModel in interface com.gitblit.IUserService
deleteUser
public boolean deleteUser(String username)
- Specified by:
deleteUser in interface com.gitblit.IUserService
getAllUsernames
public List<String> getAllUsernames()
- Specified by:
getAllUsernames in interface com.gitblit.IUserService
getAllUsers
public List<com.gitblit.models.UserModel> getAllUsers()
- Specified by:
getAllUsers in interface com.gitblit.IUserService
getAllTeamNames
public List<String> getAllTeamNames()
- Specified by:
getAllTeamNames in interface com.gitblit.IUserService
getAllTeams
public List<com.gitblit.models.TeamModel> getAllTeams()
- Specified by:
getAllTeams in interface com.gitblit.IUserService
getTeamNamesForRepositoryRole
public List<String> getTeamNamesForRepositoryRole(String repositoryName)
- Specified by:
getTeamNamesForRepositoryRole in interface com.gitblit.IUserService
getTeamModel
public com.gitblit.models.TeamModel getTeamModel(String teamName)
- Specified by:
getTeamModel in interface com.gitblit.IUserService
updateTeamModel
public boolean updateTeamModel(com.gitblit.models.TeamModel model)
- Specified by:
updateTeamModel in interface com.gitblit.IUserService
updateTeamModels
public boolean updateTeamModels(Collection<com.gitblit.models.TeamModel> models)
- Specified by:
updateTeamModels in interface com.gitblit.IUserService
updateTeamModel
public boolean updateTeamModel(String teamname,
com.gitblit.models.TeamModel model)
- Specified by:
updateTeamModel in interface com.gitblit.IUserService
deleteTeamModel
public boolean deleteTeamModel(com.gitblit.models.TeamModel model)
- Specified by:
deleteTeamModel in interface com.gitblit.IUserService
deleteTeam
public boolean deleteTeam(String teamname)
- Specified by:
deleteTeam in interface com.gitblit.IUserService
getUsernamesForRepositoryRole
public List<String> getUsernamesForRepositoryRole(String role)
- Specified by:
getUsernamesForRepositoryRole in interface com.gitblit.IUserService
renameRepositoryRole
public boolean renameRepositoryRole(String oldRole,
String newRole)
- Specified by:
renameRepositoryRole in interface com.gitblit.IUserService
deleteRepositoryRole
public boolean deleteRepositoryRole(String role)
- Specified by:
deleteRepositoryRole in interface com.gitblit.IUserService
Copyright © 2015 WSO2 Inc. All rights reserved.