Package co.ecg.alpaca.toolkit.model
Class BroadWorksObject
java.lang.Object
co.ecg.alpaca.toolkit.model.BroadWorksObject
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AccessDevice
,BroadWorksService
,BroadWorksUser
,Group
,ServiceProvider
Defines a modeled object from within the BroadWorks system.
Modeled objects are those that have expected relationships. E.G. User,
ServiceProvider, Group, and Access Device. These are not returned in such a
fashion from BroadWorks. However, each object is assigned a population
command that forms the core of what is expected from this object.
In the case of User, the object is mapped to a specific UserRequest. The
fields contained in the response then are seen as the POJO variables for the
User.
- Author:
- Matthew Keathley - mkeathley@e-c-group.com
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSerializable ConstructorBroadWorksObject
(BroadWorksServer broadWorksServer) Default Constructor to assign theBroadWorksServer
for the Object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the backing BroadWorksServer connection for the object.boolean
Returns true if the object has had it's variables populated with data from BroadWorks.boolean
abstract <E extends Response>
Epopulate()
void
setBroadWorksServer
(BroadWorksServer broadWorksServer) Sets the backing BroadWorksServer connection for the object.void
setPopulated
(boolean populated)
-
Field Details
-
broadWorksServer
-
populated
protected boolean populated
-
-
Constructor Details
-
BroadWorksObject
public BroadWorksObject()Serializable Constructor -
BroadWorksObject
Default Constructor to assign theBroadWorksServer
for the Object.- Parameters:
broadWorksServer
- The BroadWorksServer for the Object.
-
-
Method Details
-
getBroadWorksServer
Returns the backing BroadWorksServer connection for the object.- Returns:
- The BroadWorksServer
-
setBroadWorksServer
Sets the backing BroadWorksServer connection for the object. -
hasPopulated
public boolean hasPopulated()Returns true if the object has had it's variables populated with data from BroadWorks.- Returns:
- populated
-
populate
public abstract <E extends Response> E populate() throws RequestException, BroadWorksObjectException -
isPopulated
public boolean isPopulated() -
setPopulated
public void setPopulated(boolean populated)
-