@Component @DependsOn(value="repositoryService") public class OrgClosureManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OrgClosureManager.Context |
static class |
OrgClosureManager.Edge |
static class |
OrgClosureManager.Operation |
static class |
OrgClosureManager.StartupAction |
Modifier and Type | Field and Description |
---|---|
static String |
TEMP_DELTA_TABLE_NAME_FOR_ORACLE |
Constructor and Description |
---|
OrgClosureManager() |
Modifier and Type | Method and Description |
---|---|
void |
checkAndOrRebuild(boolean check,
boolean rebuild,
boolean stopOnFailure,
boolean quickCheckOnly,
OperationResult result)
Does a consistency check (either quick or thorough one) and rebuilds the closure table if necessary.
|
void |
cleanUpAfterOperation(OrgClosureManager.Context closureContext,
org.hibernate.Session session) |
long |
getLastOperationDuration() |
void |
initialize() |
boolean |
isEnabled() |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
onBeginTransactionAdd(org.hibernate.Session session,
PrismObject<T> object,
boolean overwrite) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
onBeginTransactionDelete(org.hibernate.Session session,
Class<T> type,
String oid) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
onBeginTransactionModify(org.hibernate.Session session,
Class<T> type,
String oid,
Collection<? extends ItemDelta> modifications) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
updateOrgClosure(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> originalObject,
Collection<? extends ItemDelta> modifications,
org.hibernate.Session session,
String oid,
Class<T> type,
OrgClosureManager.Operation operation,
OrgClosureManager.Context closureContext)
Main method called from SQL repository service to update the closure table during an operation.
|
public static final String TEMP_DELTA_TABLE_NAME_FOR_ORACLE
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void updateOrgClosure(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> originalObject, Collection<? extends ItemDelta> modifications, org.hibernate.Session session, String oid, Class<T> type, OrgClosureManager.Operation operation, OrgClosureManager.Context closureContext)
originalObject
- Original state of the object - before applying modification in the repository.
It is used only in case of MODIFY (note that "overwriting ADD" is present here as MODIFY!)modifications
- Collection of modifications to be applied to the object.session
- Database session to use.oid
- OID of the object.type
- Type of the object.operation
- Operation that is carried out.closureContext
- public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> OrgClosureManager.Context onBeginTransactionAdd(org.hibernate.Session session, PrismObject<T> object, boolean overwrite)
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> OrgClosureManager.Context onBeginTransactionModify(org.hibernate.Session session, Class<T> type, String oid, Collection<? extends ItemDelta> modifications)
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> OrgClosureManager.Context onBeginTransactionDelete(org.hibernate.Session session, Class<T> type, String oid)
public void cleanUpAfterOperation(OrgClosureManager.Context closureContext, org.hibernate.Session session)
@PostConstruct public void initialize()
public boolean isEnabled()
public void checkAndOrRebuild(boolean check, boolean rebuild, boolean stopOnFailure, boolean quickCheckOnly, OperationResult result)
public long getLastOperationDuration()
Copyright © 2016 evolveum. All rights reserved.