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 java.util.EventObject> |
consumePersistentEvent() |
java.util.Collection<PhoneDirectoryEntry> |
getEntries() |
PhoneDirectoryEntry |
getEntry(Person person)
Obtains an entry from the data store for the specified person.
|
void |
remove(Person person) |
java.lang.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 java.util.EventObject> E consumePersistentEvent()
throws java.rmi.RemoteException
consumePersistentEvent in interface PhoneDirectoryServiceconsumePersistentEvent in class AbstractPhoneDirectoryServicejava.rmi.RemoteExceptionpublic PhoneDirectoryEntry getEntry(Person person) throws java.rmi.RemoteException
getEntry in interface PhoneDirectoryServicegetEntry in class AbstractPhoneDirectoryServiceperson - is the Person used to lookup a Phone Directory Entry.java.rmi.RemoteExceptionAbstractPhoneDirectoryService.getEntry(Person)public java.util.Collection<PhoneDirectoryEntry> getEntries() throws java.rmi.RemoteException
getEntries in interface PhoneDirectoryServicegetEntries in class AbstractPhoneDirectoryServicejava.rmi.RemoteExceptionpublic void remove(Person person) throws java.rmi.RemoteException
remove in interface PhoneDirectoryServiceremove in class AbstractPhoneDirectoryServicejava.rmi.RemoteExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.