Package org.sklsft.commons.api.model
Class FullView<T extends Serializable,U extends Serializable>
java.lang.Object
org.sklsft.commons.api.model.FullView<T,U>
- Type Parameters:
T- idU- formboolean- canUpdateboolean- canDelete
- All Implemented Interfaces:
Serializable
public class FullView<T extends Serializable,U extends Serializable>
extends Object
implements Serializable
This class can be extended to represent the full view of an object
It can be used as the result of a get method
It basically consists of an id and a form which must be serializable
It can be used as the result of a get method
It basically consists of an id and a form which must be serializable
- Author:
- Nicolas Thibault, Amine Bouqsimi
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetForm()getId()booleanvoidsetCanDelete(boolean canDelete) voidsetCanUpdate(boolean canUpdate) voidvoid
-
Field Details
-
id
-
form
-
canUpdate
protected boolean canUpdate -
canDelete
protected boolean canDelete
-
-
Constructor Details
-
FullView
public FullView()
-
-
Method Details
-
getForm
-
setForm
-
getId
-
setId
-
getCanUpdate
public boolean getCanUpdate() -
setCanUpdate
public void setCanUpdate(boolean canUpdate) -
isCanDelete
public boolean isCanDelete() -
setCanDelete
public void setCanDelete(boolean canDelete)
-