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:
com.composum.sling.core.bean.RestrictedBean
,com.composum.sling.core.SlingBean
public class User extends View
Created by mzeibig on 16.11.15.
-
-
Field Summary
-
Fields inherited from class com.composum.sling.core.usermanagement.view.View
RA_VIEW_BEAN
-
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisabledReason()
boolean
getHasProfile()
@NotNull com.composum.sling.core.user.UserProfile
getProfile()
protected @NotNull Class<? extends AuthorizableWrapper>
getSelector()
@NotNull UserModel
getUser()
String
getUserLabel()
boolean
isAdmin()
boolean
isCurrentUserAdmin()
Returns true if the current request user is the admin user.boolean
isDisabled()
boolean
isSystemUser()
-
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.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:
getSelector
in classView
-
getUser
@NotNull public @NotNull UserModel getUser()
-
getHasProfile
public boolean getHasProfile()
-
getProfile
@NotNull public @NotNull com.composum.sling.core.user.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.RepositoryException
Returns true if the current request user is the admin user.- Throws:
javax.jcr.RepositoryException
-
-