public class OImmutableUser extends Object implements OSecurityUser
OSecurityUser.STATUSES
Constructor and Description |
---|
OImmutableUser(long version,
OUser user) |
public OImmutableUser(long version, OUser user)
public OSecurityRole allow(ORule.ResourceGeneric resourceGeneric, String resourceSpecific, int iOperation)
allow
in interface OSecurityUser
public OSecurityRole checkIfAllowed(ORule.ResourceGeneric resourceGeneric, String resourceSpecific, int iOperation)
checkIfAllowed
in interface OSecurityUser
public boolean isRuleDefined(ORule.ResourceGeneric resourceGeneric, String resourceSpecific)
isRuleDefined
in interface OSecurityUser
@Deprecated public OSecurityRole allow(String iResource, int iOperation)
allow
in interface OSecurityUser
@Deprecated public OSecurityRole checkIfAllowed(String iResource, int iOperation)
checkIfAllowed
in interface OSecurityUser
@Deprecated public boolean isRuleDefined(String iResource)
isRuleDefined
in interface OSecurityUser
public boolean checkPassword(String iPassword)
checkPassword
in interface OSecurityUser
public String getName()
getName
in interface OSecurityUser
public OUser setName(String iName)
setName
in interface OSecurityUser
public String getPassword()
getPassword
in interface OSecurityUser
public OUser setPassword(String iPassword)
setPassword
in interface OSecurityUser
public OSecurityUser.STATUSES getAccountStatus()
getAccountStatus
in interface OSecurityUser
public void setAccountStatus(OSecurityUser.STATUSES accountStatus)
setAccountStatus
in interface OSecurityUser
public Set<OImmutableRole> getRoles()
getRoles
in interface OSecurityUser
public OUser addRole(String iRole)
addRole
in interface OSecurityUser
public OUser addRole(OSecurityRole iRole)
addRole
in interface OSecurityUser
public boolean removeRole(String iRoleName)
removeRole
in interface OSecurityUser
public boolean hasRole(String iRoleName, boolean iIncludeInherited)
hasRole
in interface OSecurityUser
public long getVersion()
public OIdentifiable getIdentity()
getIdentity
in interface OSecurityUser
public ODocument getDocument()
getDocument
in interface OSecurityUser
public String getUserType()
getUserType
in interface OSecurityUser
Copyright © 2009–2020 OrientDB. All rights reserved.