public class ContextualRelationshipManager extends AbstractAttributedTypeManager<Relationship> implements RelationshipManager
| Constructor and Description |
|---|
ContextualRelationshipManager(DefaultPartitionManager partitionManager) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkIfExists(Relationship attributedType) |
protected void |
checkUniqueness(Relationship attributedType) |
<T extends Relationship> |
createRelationshipQuery(Class<T> relationshipClass)
Creates an
RelationshipQuery that can be used to query for Relationship instances. |
protected void |
doAdd(Relationship relationship) |
protected void |
doRemove(Relationship relationship) |
protected void |
doUpdate(Relationship relationship) |
protected void |
fireAttributedTypeAddedEvent(Relationship relationship) |
protected void |
fireAttributedTypeRemovedEvent(Relationship attributedType) |
protected void |
fireAttributedTypeUpdatedEvent(Relationship relationship) |
PartitionManager |
getPartitionManager() |
boolean |
inheritsPrivileges(IdentityType identity,
IdentityType assignee)
Returns true if the specified identity is the same or inherits privileges assigned to the specified assignee,
either via a relationship or a direct reference from the identity (or a combination of these)
|
<C extends Relationship> |
lookupById(Class<C> attributedType,
String id)
Retrieves an
AttributedType with the given identifier. |
add, addAttributes, createIdentityContext, fireEvent, getConfiguration, getEventBridge, getIdentityContext, getIdGenerator, getStoreSelector, remove, removeAllAttributes, removeAttributes, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, remove, updatepublic ContextualRelationshipManager(DefaultPartitionManager partitionManager)
protected void doAdd(Relationship relationship)
doAdd in class AbstractAttributedTypeManager<Relationship>protected void fireAttributedTypeAddedEvent(Relationship relationship)
fireAttributedTypeAddedEvent in class AbstractAttributedTypeManager<Relationship>protected void fireAttributedTypeUpdatedEvent(Relationship relationship)
fireAttributedTypeUpdatedEvent in class AbstractAttributedTypeManager<Relationship>protected void doUpdate(Relationship relationship)
doUpdate in class AbstractAttributedTypeManager<Relationship>protected void fireAttributedTypeRemovedEvent(Relationship attributedType)
fireAttributedTypeRemovedEvent in class AbstractAttributedTypeManager<Relationship>protected void doRemove(Relationship relationship)
doRemove in class AbstractAttributedTypeManager<Relationship>public <T extends Relationship> RelationshipQuery<T> createRelationshipQuery(Class<T> relationshipClass)
RelationshipManager
Creates an RelationshipQuery that can be used to query for Relationship instances.
The first argument tells which Relationship type should be returned. If you provide the Relationship base
interface any Relationship instance that matches the provided query parameters will be returned.
createRelationshipQuery in interface RelationshipManagerpublic <C extends Relationship> C lookupById(Class<C> attributedType, String id) throws IdentityManagementException
AttributedTypeManager
Retrieves an AttributedType with the given identifier.
The first argument tells which AttributedType type should be returned. If you provide the AttributedType base
interface any AttributedType instance that matches the given identifier will be returned.
lookupById in interface AttributedTypeManager<Relationship>AttributedType is found with the given identifier this method returns null.IdentityManagementExceptionpublic boolean inheritsPrivileges(IdentityType identity, IdentityType assignee)
RelationshipManagerinheritsPrivileges in interface RelationshipManagerprotected void checkUniqueness(Relationship attributedType) throws IdentityManagementException
checkUniqueness in class AbstractAttributedTypeManager<Relationship>IdentityManagementExceptionprotected void checkIfExists(Relationship attributedType) throws IdentityManagementException
checkIfExists in class AbstractAttributedTypeManager<Relationship>IdentityManagementExceptionpublic PartitionManager getPartitionManager()
Copyright © 2024. All rights reserved.