public interface AddressServiceLocal extends AddressService, org.cyclos.impl.CRUDServiceLocal<UserAddress,UserAddressDTO,AddressData,AddressDataParams>
AddressService| Modifier and Type | Method and Description |
|---|---|
boolean |
canAddNewAddress(User user)
Returns true if the logged user can add a new address to the given user
|
boolean |
canManageAddresses(User user)
Returns true if the logged user can manage the given user addresses
|
boolean |
canSetPrivate(User user)
Returns true if the logged user can change the private setting of the users' addresses
|
java.util.List<UserAddressVO> |
getAddresses(User user,
boolean visibleOnly,
boolean locatedOnly)
Returns all the user addresses or only the visible or located ones
|
UserAddress |
getDefaultUserAddress(User user)
Returns the user default address or null if none exists
|
SearchByDistanceData |
getSearchByDistanceData()
Returns data for the logged user to search by distance
|
org.cyclos.impl.utils.validation.Validator |
getValidator(AddressDTO address,
Group group,
boolean nameRequired)
Get a validator to validate in other services
|
getAddressListData, markAsDefaultfind, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, saveboolean canAddNewAddress(User user)
boolean canManageAddresses(User user)
boolean canSetPrivate(User user)
java.util.List<UserAddressVO> getAddresses(User user, boolean visibleOnly, boolean locatedOnly) throws FrameworkException
FrameworkExceptionUserAddress getDefaultUserAddress(User user) throws FrameworkException
FrameworkExceptionSearchByDistanceData getSearchByDistanceData() throws FrameworkException
FrameworkExceptionorg.cyclos.impl.utils.validation.Validator getValidator(AddressDTO address, Group group, boolean nameRequired) throws FrameworkException
FrameworkException