Class SqaleServiceBase

    • Field Detail

      • logger

        protected final Trace logger
      • REPOSITORY_IMPL_NAME

        public static final String REPOSITORY_IMPL_NAME
        Name of the repository implementation. While public, the value is often copied because this service class is implementation detail for the rest of the midPoint.
        See Also:
        Constant Field Values
      • opNamePrefix

        protected final String opNamePrefix
        Class name prefix for operation names, including the dot separator. Use with various `RepositoryService.OP_*` constants, not with constants without `OP_` prefix because they already contain class name of the service interface. [NOTE] This distinguishes operation names for audit and repository (e.g. `searchObjects`) - both in operation results and in performance monitoring (which previously didn't include class names). To make things compact enough, simple (short) class name is used.
    • Method Detail

      • handledGeneralException

        protected SystemException handledGeneralException​(@NotNull
                                                          @NotNull Throwable ex,
                                                          @NotNull
                                                          @NotNull OperationResult operationResult)
        Handles exception outside of transaction - this does not handle transactional problems. Returns SystemException, call with `throw` keyword.
      • recordFatalError

        protected void recordFatalError​(@NotNull
                                        @NotNull OperationResult operationResult,
                                        @NotNull
                                        @NotNull Throwable t)
      • logSearchInputParameters

        protected <T> void logSearchInputParameters​(Class<T> type,
                                                    ObjectQuery query,
                                                    String operation)
      • registerOperationStart

        protected <T extends Containerable> long registerOperationStart​(String kind,
                                                                        PrismContainer<T> object)
        Registers operation start with specified short operation type name.
      • registerOperationStart

        protected long registerOperationStart​(String kind,
                                              Class<?> type)
      • registerOperationFinish

        protected void registerOperationFinish​(long opHandle)
      • destroy

        @PreDestroy
        public void destroy()
      • getRepositoryDiag

        @NotNull
        public @NotNull RepositoryDiag getRepositoryDiag()