|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.intercept.EntityEncoder
public class EntityEncoder
Exposes a small subset of the entity encoder functionality for interceptor methods.
This class may be used as an optional second parameter for interceptor methods
that are annoted with @Load and may be used to restrict the property
values of an entity that are sent to the client. A single instance of this class
always represent only the encoder for a single entity.
| Constructor Summary | |
|---|---|
EntityEncoder(boolean proxy)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
excludeProperty(String name)
Instructs this encoder to exclude the property with the specified name from the entity sent to the client without modifying the entity itself. |
boolean |
isExcludedProperty(String name)
Checks whether the property with the specified name was marked for exclusion. |
boolean |
isProxy()
Whether this encoder will be used for an uninitialized proxy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityEncoder(boolean proxy)
proxy - whether this encoder will be used for an uninitialized proxy.| Method Detail |
|---|
public boolean isProxy()
public void excludeProperty(String name)
name - the name of the property to excludepublic boolean isExcludedProperty(String name)
name - the name of the property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||