|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModificationModule
All methods that allow modifing the entity-objects.
Method Summary | |
---|---|
void |
checkReservation(Reservation reservation)
check if the reservation can be saved |
Entity |
clone(Entity obj)
Clones an entity. |
Entity |
edit(Entity obj)
This call will be delegated to the StorageOperator . |
Entity |
getPersistant(Entity working)
Returns the persistant version of a working copy. |
Appointment |
newAppointment(Date startDate,
Date endDate)
|
Attribute |
newAttribute(AttributeType attributeType)
|
Category |
newCategory()
|
DynamicType |
newDynamicType(String classificationType)
|
Period |
newPeriod()
|
Allocatable |
newPerson()
|
CalendarModelConfiguration |
newRaplaCalendarModel(RaplaMap selected,
ClassificationFilter[] filter,
String title,
Date startDate,
Date endDate,
Date selectedDate,
String view)
WARNING! |
RaplaMap |
newRaplaMap(Collection col)
|
RaplaMap |
newRaplaMap(Map map)
|
Reservation |
newReservation()
|
Allocatable |
newResource()
|
User |
newUser()
|
void |
remove(Entity obj)
|
void |
removeObjects(Entity[] obj)
This call will be delegated to the StorageOperator |
void |
store(Entity obj)
|
void |
storeAndRemove(Entity[] storedObjects,
Entity[] removedObjects)
stores and removes objects in the one transaction |
void |
storeObjects(Entity[] obj)
This call will be delegated to the StorageOperator |
Method Detail |
---|
void checkReservation(Reservation reservation) throws RaplaException
RaplaException
RaplaMap newRaplaMap(Map map)
RaplaMap newRaplaMap(Collection col)
CalendarModelConfiguration newRaplaCalendarModel(RaplaMap selected, ClassificationFilter[] filter, String title, Date startDate, Date endDate, Date selectedDate, String view)
Reservation newReservation() throws RaplaException
RaplaException
Appointment newAppointment(Date startDate, Date endDate) throws RaplaException
RaplaException
Allocatable newResource() throws RaplaException
RaplaException
Allocatable newPerson() throws RaplaException
RaplaException
Period newPeriod() throws RaplaException
RaplaException
Category newCategory() throws RaplaException
RaplaException
Attribute newAttribute(AttributeType attributeType) throws RaplaException
RaplaException
DynamicType newDynamicType(String classificationType) throws RaplaException
RaplaException
User newUser() throws RaplaException
RaplaException
Entity clone(Entity obj) throws RaplaException
RaplaException
Entity edit(Entity obj) throws RaplaException
StorageOperator
. It
returns an editable working copy of an object. Only objects return by this method and new objects are editable.
To get the persistant, non-editable version of a working copy use getPersistant(org.rapla.entities.Entity)
RaplaException
Entity getPersistant(Entity working) throws RaplaException
EntityNotFoundException
when the
object is not found
RaplaException
edit(org.rapla.entities.Entity)
,
clone(org.rapla.entities.Entity)
void storeObjects(Entity[] obj) throws RaplaException
StorageOperator
RaplaException
void store(Entity obj) throws RaplaException
RaplaException
storeObjects(Entity[])
void removeObjects(Entity[] obj) throws RaplaException
StorageOperator
RaplaException
void remove(Entity obj) throws RaplaException
RaplaException
removeObjects(Entity[])
void storeAndRemove(Entity[] storedObjects, Entity[] removedObjects) throws RaplaException
RaplaException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |