Class RepositoryCache
- java.lang.Object
-
- com.evolveum.midpoint.repo.cache.RepositoryCache
-
- All Implemented Interfaces:
Cacheable
,RepositoryService
@Component("cacheRepositoryService") public class RepositoryCache extends Object implements RepositoryService, Cacheable
Read-through write-through per-session repository cache. TODO doc TODO logging perf measurements- Author:
- Radovan Semancik
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RepositoryCache.RepositoryCacheInvalidationDetails
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.repo.api.RepositoryService
CLAIM_TASK, HAS_CONFLICT, KEY_DIAG_DATA, KEY_ORIGINAL_OBJECT, LIST_ACCOUNT_SHADOW, OP_ADD_OBJECT, OP_ADVANCE_SEQUENCE, OP_COUNT_OBJECTS, OP_DELETE_OBJECT, OP_EXECUTE_QUERY_DIAGNOSTICS, OP_FETCH_EXT_ITEMS, OP_GET_OBJECT, OP_GET_VERSION, OP_IS_ANY_SUBORDINATE, OP_LIST_ACCOUNT_SHADOW_OWNER, OP_LIST_RESOURCE_OBJECT_SHADOWS, OP_MODIFY_OBJECT, OP_RETURN_UNUSED_VALUES_TO_SEQUENCE, OP_SEARCH_OBJECTS, OP_SEARCH_OBJECTS_ITERATIVE, OP_SEARCH_SHADOW_OWNER, RELEASE_TASK
-
-
Constructor Summary
Constructors Constructor Description RepositoryCache()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T extends ObjectType>
voidaddDiagnosticInformation(Class<T> type, String oid, DiagnosticInformationType information, OperationResult parentResult)
Adds a diagnostic information, honoring cleanup rules (deleting obsolete records).<T extends ObjectType>
StringaddObject(PrismObject<T> object, RepoAddOptions options, OperationResult parentResult)
Add new object.long
advanceSequence(String oid, OperationResult parentResult)
This operation is guaranteed to be atomic.void
applyFullTextSearchConfiguration(FullTextSearchConfigurationType fullTextSearch)
<T extends Containerable>
intcountContainers(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult)
<T extends ObjectType>
intcountObjects(Class<T> type, ObjectQuery query, OperationResult parentResult)
Deprecated.<T extends ObjectType>
intcountObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult)
Returns the number of objects that match specified criteria.ConflictWatcher
createAndRegisterConflictWatcher(String oid)
static String
debugDump()
<T extends ObjectType>
DeleteObjectResultdeleteObject(Class<T> type, String oid, OperationResult parentResult)
Deletes object with specified OID.static void
destroy()
static void
enter(CacheConfigurationManager mgr)
RepositoryQueryDiagResponse
executeQueryDiagnostics(RepositoryQueryDiagRequest request, OperationResult parentResult)
A bit of hack - execute arbitrary query, e.g.static boolean
exists()
static void
exit()
FullTextSearchConfigurationType
getFullTextSearchConfiguration()
Integer
getModifyRandomDelayRange()
<T extends ObjectType>
PrismObject<T>getObject(Class<T> type, String oid, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult)
Returns object for provided OID.PerformanceMonitor
getPerformanceMonitor()
RepositoryDiag
getRepositoryDiag()
Provide repository run-time configuration and diagnostic information.Collection<SingleCacheStateInformationType>
getStateInformation()
<T extends ObjectType>
StringgetVersion(Class<T> type, String oid, OperationResult parentResult)
Returns object version for provided OID.boolean
hasConflict(ConflictWatcher watcher, OperationResult result)
static void
init()
void
invalidate(Class<?> type, String oid, CacheInvalidationContext context)
<O extends ObjectType>
booleanisAncestor(PrismObject<O> object, String oid)
boolean
isAnySubordinate(String upperOrgOid, Collection<String> lowerObjectOids)
<O extends ObjectType>
booleanisDescendant(PrismObject<O> object, String orgOid)
PrismObject<UserType>
listAccountShadowOwner(String accountOid, OperationResult parentResult)
Deprecated.<T extends ShadowType>
List<PrismObject<T>>listResourceObjectShadows(String resourceOid, Class<T> resourceObjectShadowType, OperationResult parentResult)
Search for resource object shadows of a specified type that belong to the specified resource.<T extends ObjectType>
ModifyObjectResult<T>modifyObject(Class<T> type, String oid, Collection<? extends ItemDelta> modifications, ModificationPrecondition<T> precondition, RepoModifyOptions options, OperationResult parentResult)
<T extends ObjectType>
ModifyObjectResult<T>modifyObject(Class<T> type, String oid, Collection<? extends ItemDelta> modifications, RepoModifyOptions options, OperationResult parentResult)
<T extends ObjectType>
ModifyObjectResult<T>modifyObject(Class<T> type, String oid, Collection<? extends ItemDelta> modifications, OperationResult parentResult)
Modifies object using relative change description.void
postInit(OperationResult result)
void
repositorySelfTest(OperationResult parentResult)
Runs a short, non-descructive repository self test.void
returnUnusedValuesToSequence(String oid, Collection<Long> unusedValues, OperationResult parentResult)
The sequence may ignore the values, e.g.<T extends Containerable>
SearchResultList<T>searchContainers(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult)
Search for "sub-object" structures, i.e.<T extends ObjectType>
SearchResultList<PrismObject<T>>searchObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult)
Search for objects in the repository.<T extends ObjectType>
SearchResultMetadatasearchObjectsIterative(Class<T> type, ObjectQuery query, ResultHandler<T> handler, Collection<SelectorOptions<GetOperationOptions>> options, boolean strictlySequential, OperationResult parentResult)
Search for objects in the repository in an iterative fashion.<F extends FocusType>
PrismObject<F>searchShadowOwner(String shadowOid, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult)
Returns the object representing owner of specified shadow.<O extends ObjectType>
booleanselectorMatches(ObjectSelectorType objectSelector, PrismObject<O> object, ObjectFilterExpressionEvaluator filterEvaluator, Trace logger, String logMessagePrefix)
void
setModifyRandomDelayRange(Integer modifyRandomDelayRange)
void
testOrgClosureConsistency(boolean repairIfNecessary, OperationResult testResult)
Checks a closure for consistency, repairing any problems found.void
unregister()
void
unregisterConflictWatcher(ConflictWatcher watcher)
-
-
-
Method Detail
-
init
public static void init()
-
destroy
public static void destroy()
-
enter
public static void enter(CacheConfigurationManager mgr)
-
exit
public static void exit()
-
exists
public static boolean exists()
-
getModifyRandomDelayRange
public Integer getModifyRandomDelayRange()
-
setModifyRandomDelayRange
public void setModifyRandomDelayRange(Integer modifyRandomDelayRange)
-
debugDump
public static String debugDump()
-
getObject
public <T extends ObjectType> PrismObject<T> getObject(Class<T> type, String oid, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) throws ObjectNotFoundException, SchemaException
Description copied from interface:RepositoryService
Returns object for provided OID. Must fail if object with the OID does not exists.- Specified by:
getObject
in interfaceRepositoryService
oid
- OID of the object to getparentResult
- parent OperationResult (in/out)- Returns:
- Object fetched from repository
- Throws:
ObjectNotFoundException
- requested object does not existSchemaException
- error dealing with storage schema
-
addObject
public <T extends ObjectType> String addObject(PrismObject<T> object, RepoAddOptions options, OperationResult parentResult) throws ObjectAlreadyExistsException, SchemaException
Description copied from interface:RepositoryService
Add new object.
The OID provided in the input message may be empty. In that case the OID will be assigned by the implementation of this method and it will be provided as return value.
This operation should fail if such object already exists (if object with the provided OID already exists).
The operation may fail if provided OID is in an unusable format for the storage. Generating own OIDs and providing them to this method is not recommended for normal operation.
Should be atomic. Should not allow creation of two objects with the same OID (even if created in parallel).
The operation may fail if the object to be created does not conform to the underlying schema of the storage system or the schema enforced by the implementation.
Note: no need for explicit type parameter here. The object parameter contains the information.
- Specified by:
addObject
in interfaceRepositoryService
- Parameters:
object
- object to createparentResult
- parent OperationResult (in/out)- Returns:
- OID assigned to the created object
- Throws:
ObjectAlreadyExistsException
- object with specified identifiers already exists, cannot addSchemaException
- error dealing with storage schema, e.g. schema violation
-
searchObjects
@NotNull public <T extends ObjectType> SearchResultList<PrismObject<T>> searchObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) throws SchemaException
Description copied from interface:RepositoryService
Search for objects in the repository.
If no search criteria specified, list of all objects of specified type is returned.
Searches through all object types. Returns a list of objects that match search criteria.
Returns empty list if object type is correct but there are no objects of that type. The ordering of the results is not significant and may be arbitrary unless sorting in the paging is used.
Should fail if object type is wrong. Should fail if unknown property is specified in the query.
- Specified by:
searchObjects
in interfaceRepositoryService
query
- search queryparentResult
- parent OperationResult (in/out)- Returns:
- all objects of specified type that match search criteria (subject to paging)
- Throws:
SchemaException
- unknown property used in search query
-
searchContainers
public <T extends Containerable> SearchResultList<T> searchContainers(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) throws SchemaException
Description copied from interface:RepositoryService
Search for "sub-object" structures, i.e. containers. Currently, only one type of search is available: certification case search.- Specified by:
searchContainers
in interfaceRepositoryService
- Throws:
SchemaException
-
searchObjectsIterative
public <T extends ObjectType> SearchResultMetadata searchObjectsIterative(Class<T> type, ObjectQuery query, ResultHandler<T> handler, Collection<SelectorOptions<GetOperationOptions>> options, boolean strictlySequential, OperationResult parentResult) throws SchemaException
Description copied from interface:RepositoryService
Search for objects in the repository in an iterative fashion.
Searches through all object types. Calls a specified handler for each object found. If no search criteria specified, list of all objects of specified type is returned.
Searches through all object types. Returns a list of objects that match search criteria.
Returns empty list if object type is correct but there are no objects of that type. The ordering of the results is not significant and may be arbitrary unless sorting in the paging is used.
Should fail if object type is wrong. Should fail if unknown property is specified in the query.
- Specified by:
searchObjectsIterative
in interfaceRepositoryService
query
- search queryhandler
- result handlerstrictlySequential
- takes care not to skip any object nor to process objects more than once; see belowparentResult
- parent OperationResult (in/out)- Returns:
- all objects of specified type that match search criteria (subject to paging)
- Throws:
SchemaException
- unknown property used in search query A note related to iteration method: There are three iteration methods (see IterationMethodType): - SINGLE_TRANSACTION: Fetches objects in single DB transaction. Not supported for all DBMSs. - SIMPLE_PAGING: Uses the "simple paging" method: takes objects (e.g.) numbered 0 to 49, then 50 to 99, then 100 to 149, and so on. The disadvantage is that if the order of objects is changed during operation (e.g. by inserting/deleting some of them) then some objects can be processed multiple times, where others can be skipped. - STRICTLY_SEQUENTIAL_PAGING: Uses the "strictly sequential paging" method: sorting returned objects by OID. This is (almost) reliable in such a way that no object would be skipped. However, custom paging cannot be used in this mode. If GetOperationOptions.iterationMethod is specified, it is used without any further considerations. Otherwise, the repository configuration determines whether to use SINGLE_TRANSACTION or a paging. In the latter case, strictlySequential flag determines between SIMPLE_PAGING (if false) and STRICTLY_SEQUENTIAL_PAGING (if true). If explicit GetOperationOptions.iterationMethod is not provided, and paging is prescribed, and strictlySequential flag is true and client-provided paging conflicts with the paging used by the iteration method, a warning is issued, and iteration method is switched to SIMPLE_PAGING. Sources of conflicts: - ordering is specified - offset is specified (limit is not a problem)
-
countObjects
@Deprecated public <T extends ObjectType> int countObjects(Class<T> type, ObjectQuery query, OperationResult parentResult) throws SchemaException
Deprecated.- Specified by:
countObjects
in interfaceRepositoryService
- Throws:
SchemaException
-
countContainers
public <T extends Containerable> int countContainers(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult)
- Specified by:
countContainers
in interfaceRepositoryService
-
countObjects
public <T extends ObjectType> int countObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) throws SchemaException
Description copied from interface:RepositoryService
Returns the number of objects that match specified criteria.
If no search criteria specified, count of all objects of specified type is returned.
Should fail if object type is wrong. Should fail if unknown property is specified in the query.
- Specified by:
countObjects
in interfaceRepositoryService
query
- search queryparentResult
- parent OperationResult (in/out)- Returns:
- count of objects of specified type that match search criteria (subject to paging)
- Throws:
SchemaException
- unknown property used in search query
-
modifyObject
@NotNull public <T extends ObjectType> ModifyObjectResult<T> modifyObject(Class<T> type, String oid, Collection<? extends ItemDelta> modifications, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException
Description copied from interface:RepositoryService
Modifies object using relative change description.
Must fail if user with provided OID does not exists. Must fail if any of the described changes cannot be applied. Should be atomic.If two or more modify operations are executed in parallel, the operations should be merged. In case that the operations are in conflict (e.g. one operation adding a value and the other removing the same value), the result is not deterministic.
The operation may fail if the modified object does not conform to the underlying schema of the storage system or the schema enforced by the implementation.
TODO: optimistic locking Note: the precondition is checked only if actual modification is going to take place (not e.g. if the list of modifications is empty).- Specified by:
modifyObject
in interfaceRepositoryService
parentResult
- parent OperationResult (in/out)- Throws:
ObjectNotFoundException
- specified object does not existSchemaException
- resulting object would violate the schemaObjectAlreadyExistsException
- if resulting object would have name which already exists in another object of the same type
-
modifyObject
@NotNull public <T extends ObjectType> ModifyObjectResult<T> modifyObject(Class<T> type, String oid, Collection<? extends ItemDelta> modifications, RepoModifyOptions options, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException
- Specified by:
modifyObject
in interfaceRepositoryService
- Throws:
ObjectNotFoundException
SchemaException
ObjectAlreadyExistsException
-
modifyObject
@NotNull public <T extends ObjectType> ModifyObjectResult<T> modifyObject(@NotNull Class<T> type, @NotNull String oid, @NotNull Collection<? extends ItemDelta> modifications, ModificationPrecondition<T> precondition, RepoModifyOptions options, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException, PreconditionViolationException
- Specified by:
modifyObject
in interfaceRepositoryService
- Throws:
ObjectNotFoundException
SchemaException
ObjectAlreadyExistsException
PreconditionViolationException
-
invalidate
public void invalidate(Class<?> type, String oid, CacheInvalidationContext context)
- Specified by:
invalidate
in interfaceCacheable
-
deleteObject
@NotNull public <T extends ObjectType> DeleteObjectResult deleteObject(Class<T> type, String oid, OperationResult parentResult) throws ObjectNotFoundException
Description copied from interface:RepositoryService
Deletes object with specified OID.
Must fail if object with specified OID does not exists. Should be atomic.
- Specified by:
deleteObject
in interfaceRepositoryService
oid
- OID of object to deleteparentResult
- parent OperationResult (in/out)- Throws:
ObjectNotFoundException
- specified object does not exist
-
searchShadowOwner
public <F extends FocusType> PrismObject<F> searchShadowOwner(String shadowOid, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult)
Description copied from interface:RepositoryService
Returns the object representing owner of specified shadow.
Implements the backward "owns" association between account shadow and user. Forward association is implemented by linkRef reference in subclasses of FocusType.
Returns null if there is no owner for the shadow.This is a "search" operation even though it may return at most one owner. However the operation implies searching the repository for an owner, which may be less efficient that following a direct association. Hence it is called "search" to indicate that there may be non-negligible overhead.
This method should not die even if the specified shadow does not exist. Even if the shadow is gone, it still may be used in some linkRefs. This method should be able to find objects with such linkeRefs otherwise we will not be able to do proper cleanup.
- Specified by:
searchShadowOwner
in interfaceRepositoryService
- Parameters:
shadowOid
- OID of shadowparentResult
- parentResult parent OperationResult (in/out)- Returns:
- Object representing owner of specified account (subclass of FocusType)
-
listAccountShadowOwner
@Deprecated public PrismObject<UserType> listAccountShadowOwner(String accountOid, OperationResult parentResult) throws ObjectNotFoundException
Deprecated.Description copied from interface:RepositoryService
Returns the User object representing owner of specified account (account shadow).
May return null if there is no owner specified for the account.
May only be called with OID of AccountShadow object.
Implements the backward "owns" association between account shadow and user. Forward association is implemented by property "account" of user object.
This is a "list" operation even though it may return at most one owner. However the operation implies searching the repository for an owner, which may be less efficient that following a direct association. Hence it is called "list" to indicate that there may be non-negligible overhead.
- Specified by:
listAccountShadowOwner
in interfaceRepositoryService
- Parameters:
accountOid
- OID of account shadowparentResult
- parentResult parent OperationResult (in/out)- Returns:
- User object representing owner of specified account
- Throws:
ObjectNotFoundException
- specified object does not exist
-
listResourceObjectShadows
public <T extends ShadowType> List<PrismObject<T>> listResourceObjectShadows(String resourceOid, Class<T> resourceObjectShadowType, OperationResult parentResult) throws ObjectNotFoundException, SchemaException
Description copied from interface:RepositoryService
Search for resource object shadows of a specified type that belong to the specified resource.
Returns a list of such object shadows or empty list if nothing was found.
Implements the backward "has" association between resource and resource object shadows. Forward association is implemented by property "resource" of resource object shadow.
May only be called with OID of Resource object.
- Specified by:
listResourceObjectShadows
in interfaceRepositoryService
- Parameters:
resourceOid
- OID of resource definition (ResourceType)parentResult
- parentResult parent OperationResult (in/out)- Returns:
- resource object shadows of a specified type from specified resource
- Throws:
ObjectNotFoundException
- specified object does not existSchemaException
- found object is not type ofShadowType
-
getVersion
public <T extends ObjectType> String getVersion(Class<T> type, String oid, OperationResult parentResult) throws ObjectNotFoundException, SchemaException
Description copied from interface:RepositoryService
Returns object version for provided OID. Must fail if object with the OID does not exists. This is a supposed to be a very lightweight and cheap operation. It is used to support efficient caching of expensive objects.- Specified by:
getVersion
in interfaceRepositoryService
oid
- OID of the object to getparentResult
- parent OperationResult (in/out)- Returns:
- Object version
- Throws:
ObjectNotFoundException
- requested object does not existSchemaException
- error dealing with storage schema
-
getRepositoryDiag
public RepositoryDiag getRepositoryDiag()
Description copied from interface:RepositoryService
Provide repository run-time configuration and diagnostic information.- Specified by:
getRepositoryDiag
in interfaceRepositoryService
-
repositorySelfTest
public void repositorySelfTest(OperationResult parentResult)
Description copied from interface:RepositoryService
Runs a short, non-descructive repository self test. This methods should never throw a (checked) exception. All the results should be recorded under the provided result structure (including fatal errors). This should implement ONLY self-tests that are IMPLEMENTATION-SPECIFIC. It must not implement self-tests that are generic and applies to all repository implementations. Such self-tests must be implemented in higher layers. If the repository has no self-tests then the method should return immediately without changing the result structure. It must not throw an exception in this case.- Specified by:
repositorySelfTest
in interfaceRepositoryService
-
testOrgClosureConsistency
public void testOrgClosureConsistency(boolean repairIfNecessary, OperationResult testResult)
Description copied from interface:RepositoryService
Checks a closure for consistency, repairing any problems found. This methods should never throw a (checked) exception. All the results should be in the returned result structure (including fatal errors). The current implementation expects closure to be of reasonable size - so it could be fetched into main memory as well as recomputed online (perhaps up to ~250K entries). In future, this method will be reimplemented. BEWARE, this method locks out the M_ORG_CLOSURE table, so org-related operations would wait until it completes. TODO this method is SQL service specific; it should be generalized/fixed somehow.- Specified by:
testOrgClosureConsistency
in interfaceRepositoryService
-
isAnySubordinate
public boolean isAnySubordinate(String upperOrgOid, Collection<String> lowerObjectOids) throws SchemaException
- Specified by:
isAnySubordinate
in interfaceRepositoryService
- Throws:
SchemaException
-
isDescendant
public <O extends ObjectType> boolean isDescendant(PrismObject<O> object, String orgOid) throws SchemaException
- Specified by:
isDescendant
in interfaceRepositoryService
- Throws:
SchemaException
-
isAncestor
public <O extends ObjectType> boolean isAncestor(PrismObject<O> object, String oid) throws SchemaException
- Specified by:
isAncestor
in interfaceRepositoryService
- Throws:
SchemaException
-
selectorMatches
public <O extends ObjectType> boolean selectorMatches(ObjectSelectorType objectSelector, PrismObject<O> object, ObjectFilterExpressionEvaluator filterEvaluator, Trace logger, String logMessagePrefix) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
-
advanceSequence
public long advanceSequence(String oid, OperationResult parentResult) throws ObjectNotFoundException, SchemaException
Description copied from interface:RepositoryService
This operation is guaranteed to be atomic. If two threads or even two nodes request a value from the same sequence at the same time then different values will be returned.- Specified by:
advanceSequence
in interfaceRepositoryService
- Parameters:
oid
- sequence OIDparentResult
- Operation result- Returns:
- next unallocated counter value
- Throws:
ObjectNotFoundException
- the sequence does not existSchemaException
- the sequence cannot produce a value (e.g. maximum counter reached)
-
returnUnusedValuesToSequence
public void returnUnusedValuesToSequence(String oid, Collection<Long> unusedValues, OperationResult parentResult) throws ObjectNotFoundException, SchemaException
Description copied from interface:RepositoryService
The sequence may ignore the values, e.g. if value re-use is disabled or when the list of unused values is full. In such a case the values will be ignored silently and no error is indicated.- Specified by:
returnUnusedValuesToSequence
in interfaceRepositoryService
- Parameters:
oid
- sequence OIDunusedValues
- values to returnparentResult
- Operation result- Throws:
ObjectNotFoundException
SchemaException
-
executeQueryDiagnostics
public RepositoryQueryDiagResponse executeQueryDiagnostics(RepositoryQueryDiagRequest request, OperationResult parentResult)
Description copied from interface:RepositoryService
A bit of hack - execute arbitrary query, e.g. hibernate query in case of SQL repository. Use with all the care!- Specified by:
executeQueryDiagnostics
in interfaceRepositoryService
- Parameters:
request
- Diagnostics requestparentResult
- Operation result- Returns:
- diagnostics response
-
applyFullTextSearchConfiguration
public void applyFullTextSearchConfiguration(FullTextSearchConfigurationType fullTextSearch)
- Specified by:
applyFullTextSearchConfiguration
in interfaceRepositoryService
-
getFullTextSearchConfiguration
public FullTextSearchConfigurationType getFullTextSearchConfiguration()
- Specified by:
getFullTextSearchConfiguration
in interfaceRepositoryService
-
postInit
public void postInit(OperationResult result) throws SchemaException
- Specified by:
postInit
in interfaceRepositoryService
- Throws:
SchemaException
-
unregister
@PreDestroy public void unregister()
-
createAndRegisterConflictWatcher
public ConflictWatcher createAndRegisterConflictWatcher(@NotNull String oid)
- Specified by:
createAndRegisterConflictWatcher
in interfaceRepositoryService
-
unregisterConflictWatcher
public void unregisterConflictWatcher(ConflictWatcher watcher)
- Specified by:
unregisterConflictWatcher
in interfaceRepositoryService
-
hasConflict
public boolean hasConflict(ConflictWatcher watcher, OperationResult result)
- Specified by:
hasConflict
in interfaceRepositoryService
-
addDiagnosticInformation
public <T extends ObjectType> void addDiagnosticInformation(Class<T> type, String oid, DiagnosticInformationType information, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException
Description copied from interface:RepositoryService
Adds a diagnostic information, honoring cleanup rules (deleting obsolete records).- Specified by:
addDiagnosticInformation
in interfaceRepositoryService
- Throws:
ObjectNotFoundException
SchemaException
ObjectAlreadyExistsException
-
getPerformanceMonitor
public PerformanceMonitor getPerformanceMonitor()
- Specified by:
getPerformanceMonitor
in interfaceRepositoryService
-
getStateInformation
@NotNull public Collection<SingleCacheStateInformationType> getStateInformation()
- Specified by:
getStateInformation
in interfaceCacheable
-
-