|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CustomerGroupService
Provide customerGroup-related business service.
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 default customerGroup, namely, the group with name "PUBLIC". |
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 interface com.elasticpath.service.EpPersistenceService |
---|
getObject, getPersistenceEngine, setPersistenceEngine |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
CustomerGroup add(CustomerGroup customerGroup) throws GroupExistException
customerGroup
- the customerGroup to add
GroupExistException
- - if a customerGroup with the specified name already exists.CustomerGroup findByGroupName(java.lang.String groupName) throws EpServiceException
groupName
- - the customer group name
EpServiceException
- - in case of any errorsCustomerGroup get(long customerGroupUid) throws EpServiceException
customerGroupUid
- the customerGroup UID
EpServiceException
- - in case of any errorsCustomerGroup getDefaultGroup() throws EpServiceException
EpServiceException
- - in case of any errorsboolean groupExists(CustomerGroup customerGroup) throws EpServiceException
customerGroup
- - the customerGroup to check
EpServiceException
- - in case of any errorsboolean groupExists(java.lang.String groupName) throws EpServiceException
groupName
- - the group name to check
EpServiceException
- - in case of any errorsjava.util.List list() throws EpServiceException
EpServiceException
- - in case of any errorsCustomerGroup load(long customerGroupUid) throws EpServiceException
customerGroupUid
- the customerGroup UID
EpServiceException
- - in case of any errorsvoid remove(CustomerGroup customerGroup) throws EpServiceException
customerGroup
- the customerGroup to remove
EpServiceException
- - in case of any errorsvoid update(CustomerGroup customerGroup) throws GroupExistException
customerGroup
- 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 |