public class PhoneDirectoryServiceImpl extends AbstractPhoneDirectoryService
| Modifier and Type | Class and Description |
|---|---|
protected class |
PhoneDirectoryServiceImpl.DataAccessEventTracker |
| Constructor and Description |
|---|
PhoneDirectoryServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInternal(PhoneDirectoryEntry entry) |
protected void |
assertValidEntry(PhoneDirectoryEntry entry)
This method implements custom business rules for a Phone Directory Entry to
ensure that it adheres to the rules before being persisted.
|
<E extends EventObject> |
consumePersistentEvent() |
Collection<PhoneDirectoryEntry> |
getEntries() |
PhoneDirectoryEntry |
getEntry(Person person)
Obtains an entry from the data store for the specified person.
|
void |
remove(Person person) |
String |
toString() |
accept, add, add, add, getAddress, getDao, getPhoneNumber, setDaoecho, isAlive, mirrorprotected void assertValidEntry(PhoneDirectoryEntry entry)
entry - the PhoneDirectoryEntry being validated against the custom business rules
implemented in this service class.protected void addInternal(PhoneDirectoryEntry entry)
addInternal in class AbstractPhoneDirectoryServicepublic <E extends EventObject> E consumePersistentEvent() throws RemoteException
consumePersistentEvent in interface PhoneDirectoryServiceconsumePersistentEvent in class AbstractPhoneDirectoryServiceRemoteExceptionpublic PhoneDirectoryEntry getEntry(Person person) throws RemoteException
getEntry in interface PhoneDirectoryServicegetEntry in class AbstractPhoneDirectoryServiceperson - is the Person used to lookup a Phone Directory Entry.RemoteExceptionAbstractPhoneDirectoryService.getEntry(Person)public Collection<PhoneDirectoryEntry> getEntries() throws RemoteException
getEntries in interface PhoneDirectoryServicegetEntries in class AbstractPhoneDirectoryServiceRemoteExceptionpublic void remove(Person person) throws RemoteException
remove in interface PhoneDirectoryServiceremove in class AbstractPhoneDirectoryServiceRemoteExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.