Class IdentityExecutionUtils

java.lang.Object
org.broadleafcommerce.common.util.tenant.IdentityExecutionUtils

public class IdentityExecutionUtils extends Object
The utility methods in this class provide a way to ignore the currently configured site/catalog contexts and instead explicitly run operations in the specified context.
Author:
Jeff Fischer
  • Constructor Details

    • IdentityExecutionUtils

      public IdentityExecutionUtils()
  • Method Details

    • runOperationByIdentifier

      public static <T, G extends Throwable> T runOperationByIdentifier(IdentityOperation<T,G> operation, Site site, Site profile, Catalog catalog, org.springframework.transaction.PlatformTransactionManager transactionManager) throws G
      Throws:
      G extends Throwable
    • runOperationByIdentifier

      public static <T, G extends Throwable> T runOperationByIdentifier(IdentityOperation<T,G> operation, Site site, Catalog catalog) throws G
      Throws:
      G extends Throwable
    • runOperationByIdentifier

      public static <T, G extends Throwable> T runOperationByIdentifier(IdentityOperation<T,G> operation, Site site, Site profile, Catalog catalog) throws G
      Throws:
      G extends Throwable
    • runOperationByIdentifier

      public static <T, G extends Throwable> T runOperationByIdentifier(IdentityOperation<T,G> operation, Site site) throws G
      Throws:
      G extends Throwable
    • runOperationByIdentifier

      public static <T, G extends Throwable> T runOperationByIdentifier(IdentityOperation<T,G> operation, Site site, Site profile) throws G
      Throws:
      G extends Throwable
    • runOperationAndIgnoreIdentifier

      public static <T, G extends Throwable> T runOperationAndIgnoreIdentifier(IdentityOperation<T,G> operation) throws G
      Throws:
      G extends Throwable
    • runOperationAndIgnoreIdentifier

      public static <T, G extends Throwable> T runOperationAndIgnoreIdentifier(IdentityOperation<T,G> operation, org.springframework.transaction.PlatformTransactionManager transactionManager) throws G
      Throws:
      G extends Throwable