public class ClientState extends Object
Constructor and Description |
---|
ClientState(SlingHttpServletRequest slingRequest) |
Modifier and Type | Method and Description |
---|---|
JSONObject |
getState(String selector)
Returns all attributes from the global namespace for the given selector
|
JSONObject |
getState(String selector,
String namespace)
Returns all attributes from a given namespace for the given selector
|
JSONObject |
getState(String selector,
String[] attributes)
Returns all attributes which keys are included in the attributes array
from the global namespace for the given selector
|
JSONObject |
getState(String selector,
String[] attributes,
String namespace)
Returns all attributes which keys are included in the attributes array
from a given namespace for the given selector
|
boolean |
restoreState(AttrBuilder attr,
String selector)
Adds all attributes from the global namespace for the given selector to an AttrBuilder
|
boolean |
restoreState(AttrBuilder attr,
String selector,
String namespace)
Adds all attributes from a given namespace for the given selector to an AttrBuilder
|
boolean |
restoreState(AttrBuilder attr,
String selector,
String[] attributes)
Adds all attributes which keys are included in the attributes array
from the global namespace for the given selector to an AttrBuilder
|
boolean |
restoreState(AttrBuilder attr,
String selector,
String[] attributes,
String namespace)
Adds all attributes which keys are included in the attributes array
from a given namespace for the given selector to an AttrBuilder
|
public JSONObject getState(String selector)
selector
- public JSONObject getState(String selector, String namespace)
selector
- namespace
- public JSONObject getState(String selector, String[] attributes)
selector
- attributes
- public JSONObject getState(String selector, String[] attributes, String namespace)
selector
- attributes
- namespace
- public boolean restoreState(AttrBuilder attr, String selector)
attr
- selector
- public boolean restoreState(AttrBuilder attr, String selector, String namespace)
attr
- selector
- namespace
- public boolean restoreState(AttrBuilder attr, String selector, String[] attributes)
attr
- selector
- attributes
- public boolean restoreState(AttrBuilder attr, String selector, String[] attributes, String namespace)
attr
- selector
- attributes
- namespace
- "Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"