Package net.bluemind.core.context
Class SecurityContext
java.lang.Object
net.bluemind.core.context.SecurityContext
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
https://shipilev.net/jvm-anatomy-park/10-string-intern/ -
Field Summary
Modifier and TypeFieldDescriptionstatic final SecurityContext
static final String
static final String
static final SecurityContext
static final String
-
Constructor Summary
ConstructorDescriptionSecurityContext
(long created, String sessionId, String subject, String subjectDisplayName, List<String> memberOf, List<String> roles, Map<String, Set<String>> rolesByOrgUnit, String domainUid, String lang, String origin, boolean interactive, String ownerSubject) SecurityContext
(String sessionId, String subject, String subjectDisplayName, List<String> memberOf, List<String> roles, String domainUid) Visible for testingSecurityContext
(String sessionId, String subject, String subjectDisplayName, List<String> memberOf, List<String> roles, String domainUid, String lang, String origin) SecurityContext
(String sessionId, String subject, String subjectDisplayName, List<String> memberOf, List<String> roles, Map<String, Set<String>> rolesByOrgUnit, String domainUid, String lang, String origin) SecurityContext
(String sessionId, String subject, String subjectDisplayName, List<String> memberOf, List<String> roles, Map<String, Set<String>> rolesByOrgUnit, String domainUid, String lang, String origin, boolean interactive) SecurityContext
(String sessionId, String subject, String subjectDisplayName, List<String> memberOf, List<String> roles, Map<String, Set<String>> rolesByOrgUnit, String domainUid, String lang, String origin, boolean interactive, String ownerSubject) SecurityContext
(String sessionId, String subject, List<String> memberOf, List<String> roles, String domainUid) SecurityContext
(String sessionId, String subject, List<String> memberOf, List<String> roles, String domainUid, String lang, String origin) SecurityContext
(String sessionId, String subject, List<String> memberOf, List<String> roles, Map<String, Set<String>> rolesByOrgUnit, String domainUid, String lang, String origin) SecurityContext
(String sessionId, String subject, List<String> memberOf, List<String> roles, Map<String, Set<String>> rolesByOrgUnit, String domainUid, String lang, String origin, boolean interactive) -
Method Summary
Modifier and TypeMethodDescriptionfinal SecurityContext
boolean
Returns the domain uidlong
getLang()
getRoles()
getRolesForOrgUnit
(Collection<String> path) Returns the user / dirEntry uidboolean
isAdmin()
boolean
boolean
isDomainAdmin
(String domainUid) boolean
boolean
void
toString()
void
withRolesOnOrgUnit
(String ouUid, Set<String> roles)
-
Field Details
-
ROLE_SYSTEM
- See Also:
-
ROLE_ADMIN
- See Also:
-
ANONYMOUS
-
SYSTEM
-
TOKEN_FAKE_DOMAIN
- See Also:
-
-
Constructor Details
-
SecurityContext
public SecurityContext(String sessionId, String subject, String subjectDisplayName, List<String> memberOf, List<String> roles, String domainUid) Visible for testing- Parameters:
sessionId
-subject
-memberOf
-roles
-domainUid
-
-
SecurityContext
-
SecurityContext
-
SecurityContext
-
SecurityContext
-
SecurityContext
-
SecurityContext
-
SecurityContext
-
SecurityContext
-
SecurityContext
-
-
Method Details
-
getOwnerPrincipal
-
setOwnerPrincipal
-
getCreated
public long getCreated() -
getSessionId
-
getSubject
Returns the user / dirEntry uid- Returns:
- subject
-
getSubjectDisplayName
-
getMemberOf
-
getRoles
-
getContainerUid
Returns the domain uid- Returns:
- the domain uid
-
getLang
-
getOrigin
-
isDomainGlobal
public boolean isDomainGlobal() -
fromGlobalVirt
public boolean fromGlobalVirt() -
isDomainAdmin
-
isAdmin
public boolean isAdmin() -
isAnonymous
public boolean isAnonymous() -
getRemoteAddresses
-
toString
-
from
-
from
-
isInteractive
public boolean isInteractive() -
getRolesForOrgUnit
-
getRolesByOrgUnits
-
withRolesOnOrgUnit
-