Friday, September 4, 2015

Check Store Flow Feature Enabled/Disabled in Controller Command.

1. The below code which is uses to check the store flow enabled

/**
 * @param storeFlowName Object.
 * @return storeFlowStatusEnabled Object.
 */
public static Boolean isStoreFlowEnabled(String storeFlowName) {
    Boolean storeFlowStatusEnabled = false;
    // Re-Leverage TagHandlerHelper (Flex-Flow Tag Cache, ETC...)
    storeFlowStatusEnabled = TagHandlerHelper.isFeatureEnabled(storeFlowName);
    return storeFlowStatusEnabled;
}

1. The below code which is uses to check the store flow disabled

/**
 * @param storeFlowName Object.
 * @return !(storeFlowStatusEnabled) Object.
 */
public static Boolean isStoreFunctionDisabled(String storeFlowName ) {
    Boolean storeFlowStatusDisabled = false;
    // Re-Leverage TagHandlerHelper (Flex-Flow Tag Cache, ETC...)
    storeFlowStatusDisabled = !(TagHandlerHelper.isFeatureEnabled(storeFlowName ));
    return storeFlowStatusDisabled;

}

No comments:

Post a Comment