|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 CustomerGroupService
customerGroup
- 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 CustomerGroupService
groupName
- - the customer group name
EpServiceException
- - in case of any errorspublic CustomerGroup get(long customerGroupUid) throws EpServiceException
get
in interface CustomerGroupService
customerGroupUid
- the customerGroup UID
EpServiceException
- - in case of any errorspublic CustomerGroup getDefaultGroup() throws EpServiceException
getDefaultGroup
in interface CustomerGroupService
EpServiceException
- - in case of any errorspublic java.lang.Object getObject(long uid) throws EpServiceException
getObject
in interface EpPersistenceService
uid
- the persisted instance uid
EpServiceException
- -
in case of any errorspublic boolean groupExists(CustomerGroup customerGroup) throws EpServiceException
groupExists
in interface CustomerGroupService
customerGroup
- - the customerGroup to check
EpServiceException
- - in case of any errorspublic boolean groupExists(java.lang.String groupName) throws EpServiceException
groupExists
in interface CustomerGroupService
groupName
- the group name to check
EpServiceException
- - in case of any errorspublic java.util.List list() throws EpServiceException
list
in interface CustomerGroupService
EpServiceException
- - in case of any errorspublic CustomerGroup load(long customerGroupUid) throws EpServiceException
load
in interface CustomerGroupService
customerGroupUid
- the customerGroup UID
EpServiceException
- - in case of any errorspublic void remove(CustomerGroup customerGroup) throws EpServiceException
remove
in interface CustomerGroupService
customerGroup
- the customerGroup to remove
EpServiceException
- - in case of any errorspublic void update(CustomerGroup customerGroup) throws GroupExistException
update
in interface CustomerGroupService
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 |