Class DefaultOrgUnitActivationStrategy
java.lang.Object
de.hybris.platform.commerceservices.organization.strategies.impl.DefaultOrgUnitActivationStrategy
- All Implemented Interfaces:
OrgUnitActivationStrategy<OrgUnitModel>
public class DefaultOrgUnitActivationStrategy
extends Object
implements OrgUnitActivationStrategy<OrgUnitModel>
Default implementation of the
OrgUnitActivationStrategy interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateUnit(OrgUnitModel unit) Active the given unit.protected PageableDatavoiddeactivateUnit(OrgUnitModel unit) Deactivate the given unit and all of its child units.protected Set<OrgUnitModel>getBranch(OrgUnitModel node) protected ModelServiceprotected OrgUnitDaoprotected voidprocessBranch(Set<OrgUnitModel> branchUnits, org.apache.commons.collections.Closure closure) voidsetModelService(ModelService modelService) voidsetOrgUnitDao(OrgUnitDao orgUnitDao) protected voidtoggleUnit(OrgUnitModel unit, boolean activate)
-
Constructor Details
-
DefaultOrgUnitActivationStrategy
public DefaultOrgUnitActivationStrategy()
-
-
Method Details
-
activateUnit
Description copied from interface:OrgUnitActivationStrategyActive the given unit.- Specified by:
activateUnitin interfaceOrgUnitActivationStrategy<OrgUnitModel>- Parameters:
unit- theOrgUnitModelto activate
-
deactivateUnit
Description copied from interface:OrgUnitActivationStrategyDeactivate the given unit and all of its child units.- Specified by:
deactivateUnitin interfaceOrgUnitActivationStrategy<OrgUnitModel>- Parameters:
unit- theOrgUnitModelto deactivate
-
processBranch
protected void processBranch(Set<OrgUnitModel> branchUnits, org.apache.commons.collections.Closure closure) -
toggleUnit
-
getBranch
-
createPageableData
-
getModelService
-
setModelService
-
getOrgUnitDao
-
setOrgUnitDao
-