All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method and Description |
protected void |
addGlobalGroupRoles(Set<String> roles,
List<String> groups,
PermissionsConfigTO rolesConfig) |
protected void |
addGlobalUserRoles(String user,
Set<String> roles,
PermissionsConfigTO rolesConfig) |
protected void |
addGroupRoles(Set<String> roles,
String site,
List<String> groups,
PermissionsConfigTO rolesConfig)
get roles by groups
|
protected void |
addUserRoles(Set<String> roles,
String site,
String user)
add user roles
|
String |
authenticate(String username,
String password)
authenticate a user.
|
boolean |
changePassword(String username,
String current,
String newPassword)
Change password
|
int |
getAllUsersTotal()
Get all users
|
AuditServiceInternal |
getAuditServiceInternal() |
Authentication |
getAuthentication()
Returns the Authentication for the current user or null if not user is authenticated.
|
AuthenticationChain |
getAuthenticationChain() |
ConfigurationService |
getConfigurationService() |
ContentService |
getContentService() |
ContentTypeService |
getContentTypeService() |
String |
getCurrentToken() |
String |
getCurrentUser()
Returns the username of the current user OR NULL if no user is authenticated
|
String |
getDefaultFromAddress() |
org.springframework.mail.javamail.JavaMailSender |
getEmailService() |
org.springframework.mail.javamail.JavaMailSender |
getEmailServiceNoAuth() |
org.springframework.beans.factory.ObjectFactory<org.springframework.web.servlet.view.freemarker.FreeMarkerConfig> |
getFreeMarkerConfig() |
GeneralLockService |
getGeneralLockService() |
String |
getGlobalConfigPath() |
String |
getGlobalPermissionsFileName() |
String |
getGlobalRoleMappingsFileName() |
GroupService |
getGroupService() |
protected String |
getJobOrEventTicket() |
String |
getPermissionsFileName() |
protected String |
getPermissionsKey(String site,
String filename) |
String |
getRoleMappingsFileName() |
protected Map<String,List<String>> |
getRoles(List<org.dom4j.Node> nodes,
Map<String,List<String>> rolesMap) |
int |
getSessionTimeout() |
SiteService |
getSiteService() |
StudioConfiguration |
getStudioConfiguration() |
String |
getSystemSite() |
UserDetailsManager |
getUserDetailsManager() |
Set<String> |
getUserPermissions(String site,
String path,
List<String> groups) |
Set<String> |
getUserPermissions(String site,
String path,
String user,
List<String> groups) |
Map<String,Object> |
getUserProfile(String user) |
Map<String,Object> |
getUserProfileByGitName(String gitName)
Get user by git name.
|
Set<String> |
getUserRoles(String site) |
Set<String> |
getUserRoles(String site,
String user) |
Set<String> |
getUserRoles(String site,
String user,
boolean includeGlobal) |
UserServiceInternal |
getUserServiceInternal() |
boolean |
isAuthenticatedSMTP() |
boolean |
isSiteAdmin(String username,
String site)
Check if given user is site admin
|
protected PermissionsConfigTO |
loadConfiguration(String site,
String filename) |
protected PermissionsConfigTO |
loadGlobalPermissionsConfiguration() |
protected PermissionsConfigTO |
loadGlobalRolesConfiguration() |
protected void |
loadPermissions(String siteId,
org.dom4j.Element root,
PermissionsConfigTO config) |
protected void |
loadRoles(org.dom4j.Element root,
PermissionsConfigTO config) |
boolean |
logout() |
protected Set<String> |
populateUserGlobalPermissions(String path,
Set<String> roles,
PermissionsConfigTO permissionsConfig) |
protected Set<String> |
populateUserPermissions(String site,
String path,
Set<String> roles,
PermissionsConfigTO permissionsConfig)
populate user permissions
|
void |
reloadConfiguration(String site) |
void |
reloadGlobalConfiguration() |
boolean |
resetPassword(String username,
String newPassword)
Reset user password
|
void |
setAuditServiceInternal(AuditServiceInternal auditServiceInternal) |
void |
setAuthenticationChain(AuthenticationChain authenticationChain) |
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setContentService(ContentService contentService) |
void |
setContentTypeService(ContentTypeService contentTypeService) |
void |
setEmailService(org.springframework.mail.javamail.JavaMailSender emailService) |
void |
setEmailServiceNoAuth(org.springframework.mail.javamail.JavaMailSender emailServiceNoAuth) |
void |
setFreeMarkerConfig(org.springframework.beans.factory.ObjectFactory<org.springframework.web.servlet.view.freemarker.FreeMarkerConfig> freeMarkerConfig) |
void |
setGeneralLockService(GeneralLockService generalLockService) |
void |
setGroupService(GroupService groupService) |
void |
setSiteService(SiteService siteService) |
void |
setStudioConfiguration(StudioConfiguration studioConfiguration) |
void |
setUserDetailsManager(UserDetailsManager userDetailsManager) |
Map<String,Object> |
setUserPassword(String token,
String newPassword)
Set user password - forgot password token
|
void |
setUserServiceInternal(UserServiceInternal userServiceInternal) |
boolean |
userExists(String username)
Check if user exists
|
boolean |
validateSession(javax.servlet.http.HttpServletRequest request)
Validate user's active session
|
boolean |
validateTicket(String ticket) |
boolean |
validateToken(String token)
Forgot password token to validate
|