|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.service.impl.AbstractEpServiceImpl
com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
com.elasticpath.service.customer.impl.CustomerGroupServiceImpl
public class CustomerGroupServiceImpl
The default implementation of CustomerGroupService.
| Constructor Summary | |
|---|---|
CustomerGroupServiceImpl()
|
|
| Method Summary | |
|---|---|
CustomerGroup |
add(CustomerGroup customerGroup)
Adds the given customerGroup. |
CustomerGroup |
findByGroupName(java.lang.String groupName)
Find the customer group with the given group name. |
CustomerGroup |
get(long customerGroupUid)
Get the customerGroup with the given UID. |
CustomerGroup |
getDefaultGroup()
Return the deafalt customerGroup, namely, the group with name "PUBLIC". |
java.lang.Object |
getObject(long uid)
Generic load method for all persistable domain models. |
boolean |
groupExists(CustomerGroup customerGroup)
Check if a different customer group with the given customer group's name exists exists or not. |
boolean |
groupExists(java.lang.String groupName)
Check the given customer group's name exists or not. |
java.util.List |
list()
List all customerGroups stored in the database. |
CustomerGroup |
load(long customerGroupUid)
Load the customerGroup with the given UID. |
void |
remove(CustomerGroup customerGroup)
Delete the customerGroup. |
void |
update(CustomerGroup customerGroup)
Updates the given customerGroup. |
| Methods inherited from class com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl |
|---|
getPersistenceEngine, setPersistenceEngine |
| Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl |
|---|
getElasticPath, setElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.elasticpath.service.EpPersistenceService |
|---|
getPersistenceEngine, setPersistenceEngine |
| Methods inherited from interface com.elasticpath.service.EpService |
|---|
getElasticPath, setElasticPath |
| Constructor Detail |
|---|
public CustomerGroupServiceImpl()
| Method Detail |
|---|
public CustomerGroup add(CustomerGroup customerGroup)
throws GroupExistException
add in interface CustomerGroupServicecustomerGroup - the customerGroup to add
GroupExistException - - if a customerGroup with the specified name already exists.
public CustomerGroup findByGroupName(java.lang.String groupName)
throws EpServiceException
findByGroupName in interface CustomerGroupServicegroupName - - the customer group name
EpServiceException - - in case of any errors
public CustomerGroup get(long customerGroupUid)
throws EpServiceException
get in interface CustomerGroupServicecustomerGroupUid - the customerGroup UID
EpServiceException - - in case of any errors
public CustomerGroup getDefaultGroup()
throws EpServiceException
getDefaultGroup in interface CustomerGroupServiceEpServiceException - - in case of any errors
public java.lang.Object getObject(long uid)
throws EpServiceException
getObject in interface EpPersistenceServiceuid - the persisted instance uid
EpServiceException - -
in case of any errors
public boolean groupExists(CustomerGroup customerGroup)
throws EpServiceException
groupExists in interface CustomerGroupServicecustomerGroup - - the customerGroup to check
EpServiceException - - in case of any errors
public boolean groupExists(java.lang.String groupName)
throws EpServiceException
groupExists in interface CustomerGroupServicegroupName - the group name to check
EpServiceException - - in case of any errors
public java.util.List list()
throws EpServiceException
list in interface CustomerGroupServiceEpServiceException - - in case of any errors
public CustomerGroup load(long customerGroupUid)
throws EpServiceException
load in interface CustomerGroupServicecustomerGroupUid - the customerGroup UID
EpServiceException - - in case of any errors
public void remove(CustomerGroup customerGroup)
throws EpServiceException
remove in interface CustomerGroupServicecustomerGroup - the customerGroup to remove
EpServiceException - - in case of any errors
public void update(CustomerGroup customerGroup)
throws GroupExistException
update in interface CustomerGroupServicecustomerGroup - the customerGroup to update
GroupExistException - - if a customerGroup with the specified name already exists.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||