Package ubic.gemma.web.remote
Class EntityDelegator<T extends Identifiable>
- java.lang.Object
-
- ubic.gemma.web.remote.EntityDelegator<T>
-
- Type Parameters:
T
- the type of entity being delegated
public class EntityDelegator<T extends Identifiable> extends Object
Bean to expose for remote access via AJAX, when all that is needed is the ID and a way to know what the class is.- Author:
- Paul
-
-
Constructor Summary
Constructors Constructor Description EntityDelegator()
EntityDelegator(T entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClassDelegatingFor()
Long
getId()
boolean
holds(Class<?> type)
Check if the entity delegator holds the given type.void
setClassDelegatingFor(String classDelegatingFor)
void
setId(Long id)
String
toString()
-
-
-
Constructor Detail
-
EntityDelegator
public EntityDelegator()
-
EntityDelegator
public EntityDelegator(T entity)
-
-
Method Detail
-
getClassDelegatingFor
public String getClassDelegatingFor()
-
getId
public Long getId()
-
setClassDelegatingFor
public void setClassDelegatingFor(String classDelegatingFor)
-
setId
public void setId(Long id)
-
holds
public boolean holds(Class<?> type)
Check if the entity delegator holds the given type.
-
-