Class User
- java.lang.Object
-
- com.composum.sling.core.AbstractSlingBean
-
- com.composum.sling.nodes.console.ConsoleSlingBean
-
- com.composum.sling.core.usermanagement.view.View
-
- com.composum.sling.core.usermanagement.view.User
-
- All Implemented Interfaces:
RestrictedBean,SlingBean
public class User extends View
Created by mzeibig on 16.11.15.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.composum.sling.core.AbstractSlingBean
AbstractSlingBean.NodeClosure
-
-
Field Summary
-
Fields inherited from class com.composum.sling.core.usermanagement.view.View
RA_VIEW_BEAN
-
Fields inherited from class com.composum.sling.core.AbstractSlingBean
context, queryManager, request, resolver, resource, response, session, sling
-
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisabledReason()booleangetHasProfile()@NotNull UserProfilegetProfile()protected @NotNull Class<? extends AuthorizableWrapper>getSelector()@NotNull UserModelgetUser()StringgetUserLabel()booleanisAdmin()booleanisCurrentUserAdmin()Returns true if the current request user is the admin user.booleanisDisabled()booleanisSystemUser()-
Methods inherited from class com.composum.sling.core.usermanagement.view.View
getDeclaredMemberOf, getId, getModel, getPath, getPathFilter, getSuffix, getTabType, getView, getViewType
-
Methods inherited from class com.composum.sling.nodes.console.ConsoleSlingBean
initialize
-
Methods inherited from class com.composum.sling.core.AbstractSlingBean
executeQuery, findBeans, findNodes, findNodes, findPathList, getContentResource, getDomId, getHasTitle, getInherited, getInherited, getName, getNode, getParent, getParent, getPermissible, getProperty, getProperty, getQueryManager, getRequest, getResolver, getResource, getResponse, getServiceKey, getSession, getSling, getStringId, getTitle, getType, getUrl, getUsername, initialize, isPermissible, isReadAllowed, isWriteAllowed, toString, toString
-
-
-
-
Method Detail
-
getSelector
@NotNull protected @NotNull Class<? extends AuthorizableWrapper> getSelector()
- Overrides:
getSelectorin classView
-
getUser
@NotNull public @NotNull UserModel getUser()
-
getHasProfile
public boolean getHasProfile()
-
getProfile
@NotNull public @NotNull UserProfile getProfile()
-
getUserLabel
public String getUserLabel()
-
isSystemUser
public boolean isSystemUser()
-
isAdmin
public boolean isAdmin()
-
isDisabled
public boolean isDisabled()
-
getDisabledReason
public String getDisabledReason()
-
isCurrentUserAdmin
public boolean isCurrentUserAdmin() throws javax.jcr.RepositoryExceptionReturns true if the current request user is the admin user.- Throws:
javax.jcr.RepositoryException
-
-