|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.management.ManageableComponent
flex.messaging.services.ServiceAdapter
flex.data.adapters.JavaAdapter
public class JavaAdapter
DataAdapter for employing Java objects as a service tier for DataCollection operations. The adapter handles incoming messages and hands the data to Assembler implementions which integrate with the persistence store.
| Nested Class Summary | |
|---|---|
class |
JavaAdapter.FillMethod
A class that represents JavaAdapter fill methods. |
class |
JavaAdapter.GetMethod
A class that represents JavaAdapter get methods. |
class |
JavaAdapter.QueryMethod
A class that represents JavaAdapter query methods (count methods). |
| Field Summary | |
|---|---|
String |
LOG_CATEGORY
Log category for JavaAdapter. |
| Fields inherited from interface flex.data.adapters.JavaAdapterConstants |
|---|
AUTO_REFRESH_ELEMENT, CONFLICT_MODE_DEFAULT, CONFLICT_MODE_DELETE_ATTR, CONFLICT_MODE_UPDATE_ATTR, COUNT_ELEMENT, FILL_CONTAINS_METHOD_ELEMENT, FILL_ELEMENT, GET_ELEMENT, METHOD_NAME_ELEMENT, ORDERED_ELEMENT, PARAM_TYPES_ELEMENT, SECURITY_CONSTRAINT_ELEMENT, SECURITY_REF_ATTR, SECURITY_RUN_AS_ELEMENT, SYNC_ELEMENT |
| Constructor Summary | |
|---|---|
JavaAdapter()
Constructs an unmanaged JavaAdapter instance. |
|
JavaAdapter(boolean enableManagement)
Constructs a JavaAdapter instance. |
|
| Method Summary | |
|---|---|
void |
addCountMethod(String name)
Adds a count method. |
void |
addCountMethod(String name,
String params)
Adds a count method. |
void |
addFillMethod(String name)
Adds a fill method. |
void |
addFillMethod(String name,
String params)
Adds a fill method. |
void |
addFillMethod(String name,
String params,
boolean autoRefresh,
boolean ordered,
String fillContainsName)
Adds a fill method . |
boolean |
allowSend(Subtopic subtopic)
This method is invoked before a client message is sent to a subtopic, so that custom application logic can determine whether the client should be allowed to send to the specified subtopic. |
boolean |
allowSubscribe(Subtopic subtopic)
Need a hook so that the customer can provide messaging security. |
boolean |
fillNeedsAutoRefresh(Object args)
This method is called directly from the data service (not using the messaging abstraction. |
List |
getCountMethods()
Returns the list of count methods which are of QueryMethod
types. |
List |
getFillMethods()
Returns the list of fill methods. |
JavaAdapter.GetMethod |
getGetMethod()
Returns the get method. |
SecurityConstraintManager |
getSecurityConstraintManager()
Gets the SecurityConstraintManager of the JavaAdapter. |
Method |
getSyncMethod()
Returns the sync method. |
void |
initialize(String id,
ConfigMap properties)
Initializes the JavaAdapter with the properties. |
Object |
invoke(Message message)
Handle a data message intended for this adapter. |
void |
setDestination(Destination destination)
Casts the Destination into DataDestination
and calls super.setDestination. |
void |
setGetMethod(String name)
Sets the get method. |
void |
setSecurityConstraintManager(SecurityConstraintManager constraintManager)
Sets the SecurityConstraintManager of the JavaAdapter. |
void |
setSyncMethod(String name)
Sets the sync method. |
void |
start()
Starts the adapter. |
void |
stop()
Stops the adapter. |
| Methods inherited from class flex.messaging.services.ServiceAdapter |
|---|
getAdapterState, getDestination, handlesSubscriptions, manage, setAdapterState |
| Methods inherited from class flex.management.ManageableComponent |
|---|
getControl, getId, getParent, isManaged, isStarted, isValid, setControl, setId, setManaged, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String LOG_CATEGORY
JavaAdapter.
| Constructor Detail |
|---|
public JavaAdapter()
JavaAdapter instance.
public JavaAdapter(boolean enableManagement)
JavaAdapter instance.
enableManagement - true if the JavaAdapter has a
corresponding MBean control for management; otherwise false.| Method Detail |
|---|
public void initialize(String id,
ConfigMap properties)
JavaAdapter with the properties.
initialize in interface FlexConfigurableinitialize in class ManageableComponentproperties - Properties for the JavaAdapter.id - Id of the ManageableComponent.public void start()
start in interface FlexComponentstart in class ServiceAdapterpublic void stop()
stop in interface FlexComponentstop in class ServiceAdapterpublic List getCountMethods()
QueryMethod
types.
public void addCountMethod(String name)
name - Name of the count method.
public void addCountMethod(String name,
String params)
name - Name of the count method.params - Comma delimited parameter type list.public void setDestination(Destination destination)
Destination into DataDestination
and calls super.setDestination.
setDestination in class ServiceAdapterdestination - public List getFillMethods()
public void addFillMethod(String name)
name - Name of the fill method.
public void addFillMethod(String name,
String params)
name - Name of the fill method.params - Comma delimited parameter type list.
public void addFillMethod(String name,
String params,
boolean autoRefresh,
boolean ordered,
String fillContainsName)
name - Name of the fill method.params - Comma delimited parameter type list.autoRefresh - If it is auto refreshed or not.ordered - If it is ordered or not.fillContainsName - Fill contains method.public JavaAdapter.GetMethod getGetMethod()
public void setGetMethod(String name)
name - Name of the get method.public SecurityConstraintManager getSecurityConstraintManager()
SecurityConstraintManager of the JavaAdapter.
SecurityConstraintManager of the JavaAdapter.public void setSecurityConstraintManager(SecurityConstraintManager constraintManager)
SecurityConstraintManager of the JavaAdapter.
constraintManager - The SecurityConstraintManager of the JavaAdapter.public Method getSyncMethod()
public void setSyncMethod(String name)
name - Name of the sync method.public Object invoke(Message message)
ServiceAdapterTypically the data content for the message is stored in the body property of the message. The headers of the message are used to store fields which relate to the transport of the message. The type of operation is stored as the operation property of the message.
invoke in class ServiceAdaptermessage - the message as sent by the client intended for this adapter
Message,
AsyncMessagepublic boolean fillNeedsAutoRefresh(Object args)
public boolean allowSubscribe(Subtopic subtopic)
allowSubscribe in interface MessagingSecuritysubtopic - The subtopic the client is attempting to subscribe to.
public boolean allowSend(Subtopic subtopic)
MessagingSecurityFlexContext.getUserPrincipal().
allowSend in interface MessagingSecuritysubtopic - The subtopic the client is attempting to send a message to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/data/adapters/JavaAdapter.html