|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.datamodel.classifications.MCRClassificationPool
public class MCRClassificationPool
| Field Summary | |
|---|---|
(package private) static Logger |
LOGGER
|
| Constructor Summary | |
|---|---|
MCRClassificationPool()
|
|
| Method Summary | |
|---|---|
void |
deleteClassification(MCRCategoryID cl)
Delete a classfication from the pool |
Set<MCRCategoryID> |
getAllIDs()
This method returns all ClassificationIDs. |
MCRCategory |
getClassificationAsPojo(MCRCategoryID clid,
boolean writeAccess)
This method checks to see if the classification which is expected is in the Session (when edited) or it takes the classification from the database |
HashSet<MCRCategoryID> |
getMovedCategories()
|
boolean |
isEdited(MCRCategoryID classID)
Check if the Classification with classID is already edited and in the session. |
boolean |
purgeAll()
Cancel all changes. |
boolean |
saveAll()
Save all changes to the database. |
void |
updateClassification(MCRCategory cl)
Put the classification in the Session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static Logger LOGGER
| Constructor Detail |
|---|
public MCRClassificationPool()
| Method Detail |
|---|
public Set<MCRCategoryID> getAllIDs()
public boolean saveAll()
public boolean purgeAll()
public boolean isEdited(MCRCategoryID classID)
classID - Classification ID to check for
true when Classification is edited,
false when not.public void updateClassification(MCRCategory cl)
cl - Classification to be stored in the session.public void deleteClassification(MCRCategoryID cl)
cl -
public MCRCategory getClassificationAsPojo(MCRCategoryID clid,
boolean writeAccess)
clid - writeAccess -
public HashSet<MCRCategoryID> getMovedCategories()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||