|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.catalog.CatalogManager
public class CatalogManager
Description:
The CatalogManager is responsible for the persistence of CatalogEntries.
Further it provides access methods to retrieve structures of CatalogEntries
for a given CatalogEntry, e.g. children, catalog entries which act as roots,
delete subcategory structure.
Moreover it also has access methods providing all catalog entries referencing a given repository entry.
The CatalogManager also provides hooks used by the repository entry manager
to signal changes on a repository entry which might have changed. Such
changes can invoke the removal from the catalog, e.g. restricting access,
deleting a repository entry.
Date: 2005/10/14 13:21:42
| Field Summary | |
|---|---|
static java.lang.String |
CATALOGENTRY
Resource identifyer for catalog entries |
static java.lang.String |
CATALOGROOT
Default value for the catalog root CATALOGROOT |
| Method Summary | |
|---|---|
void |
addCatalogEntry(CatalogEntry parent,
CatalogEntry newEntry)
add a catalog entry to the specified parent |
CatalogEntry |
createCatalogEntry()
|
OLATResourceable |
createOLATResouceableFor(CatalogEntry currentCatalogEntry)
Create a volatile OLATResourceable for a given catalog entry that can be used to create a bookmark to this catalog entry |
void |
deleteCatalogEntry(CatalogEntry ce)
delete a catalog entry and a potentially referenced substructure from db. |
void |
deleteUserData(Identity identity,
java.lang.String newDeletedUserName)
Remove identity as owner of catalog-entry. |
java.util.List |
entriesWithOwnerFrom(Identity owner,
CatalogEntry ce)
|
java.util.List |
filterOwnedLeafs(Identity identity,
java.util.List catalogEntries)
Filters all catalog entries of type leaf that are owned by the given user |
java.util.List<CatalogEntry> |
getAllCatalogNodes()
Returns a list catalog categories |
java.util.List |
getCatalogCategoriesFor(RepositoryEntry repoEntry)
find all catalog categorie that the given repository entry is a child of |
java.util.List |
getCatalogEntriesByName(java.lang.String name)
find catalog entries by supplied name |
java.util.List |
getCatalogEntriesOwnedBy(Identity identity)
Find catalog entries for certain identity |
java.util.List |
getCatalogEntriesReferencing(RepositoryEntry repoEntry)
find all catalog entries referencing the supplied Repository Entry. |
java.util.List<CatalogEntry> |
getChildrenOf(CatalogEntry ce)
Children of this CatalogEntry as a list of CatalogEntries |
static CatalogManager |
getInstance()
|
java.util.List |
getRootCatalogEntries()
Find all CatalogEntries which can act as catalog roots. |
boolean |
hasChildEntries(CatalogEntry ce,
int type)
Checks if the given catalog entry has any child of the given type. |
void |
init()
init called on module start-up |
boolean |
isEntryWithinCategory(CatalogEntry toBeCheckedEntry,
java.util.List<CatalogEntry> entriesList)
checks if the given catalog entry is within one of the given catalog categories |
CatalogEntry |
loadCatalogEntry(CatalogEntry catalogEntry)
Reload the given catalog entry from db or from hibernate second level cache |
CatalogEntry |
loadCatalogEntry(java.lang.Long catEntryId)
Load the catalog entry by the given ID |
boolean |
moveCatalogEntry(CatalogEntry toBeMovedEntry,
CatalogEntry newParentEntry)
Move the given catalog entry to the new parent |
void |
resourceableDeleted(RepositoryEntry repositoryEntry)
|
void |
saveCatalogEntry(CatalogEntry ce)
persist catalog entry |
void |
updateCatalogEntry(CatalogEntry ce)
update catalog entry on db |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CATALOGROOT
CATALOGROOT
public static final java.lang.String CATALOGENTRY
| Method Detail |
|---|
public static CatalogManager getInstance()
public CatalogEntry createCatalogEntry()
public java.util.List<CatalogEntry> getChildrenOf(CatalogEntry ce)
ce -
public java.util.List<CatalogEntry> getAllCatalogNodes()
public boolean hasChildEntries(CatalogEntry ce,
int type)
ce - type - CatalogEntry.TYPE_LEAF or CatalogEntry.TYPE_NODE
public java.util.List filterOwnedLeafs(Identity identity,
java.util.List catalogEntries)
identity - catalogEntries - List of catalog entries to be filtered
public CatalogEntry loadCatalogEntry(CatalogEntry catalogEntry)
catalogEntry -
public CatalogEntry loadCatalogEntry(java.lang.Long catEntryId)
catEntryId -
public void saveCatalogEntry(CatalogEntry ce)
ce - public void updateCatalogEntry(CatalogEntry ce)
ce -
public java.util.List entriesWithOwnerFrom(Identity owner,
CatalogEntry ce)
public void deleteCatalogEntry(CatalogEntry ce)
ce - public java.util.List getCatalogEntriesReferencing(RepositoryEntry repoEntry)
repoEntry -
public java.util.List getCatalogCategoriesFor(RepositoryEntry repoEntry)
repoEntry -
public java.util.List getCatalogEntriesByName(java.lang.String name)
name -
public java.util.List getCatalogEntriesOwnedBy(Identity identity)
name -
public void addCatalogEntry(CatalogEntry parent,
CatalogEntry newEntry)
parent - newEntry - public java.util.List getRootCatalogEntries()
public void init()
public boolean moveCatalogEntry(CatalogEntry toBeMovedEntry,
CatalogEntry newParentEntry)
toBeMovedEntry - newParentEntry - return true: success; false: failurepublic void resourceableDeleted(RepositoryEntry repositoryEntry)
repositoryEntry -
public void deleteUserData(Identity identity,
java.lang.String newDeletedUserName)
deleteUserData in interface UserDataDeletableidentity - Data for this identity will be deletedorg.olat.user.UserDataDeletable#deleteUserData(org.olat.core.id.Identity)
public boolean isEntryWithinCategory(CatalogEntry toBeCheckedEntry,
java.util.List<CatalogEntry> entriesList)
toBeCheckedEntry - entriesList -
public OLATResourceable createOLATResouceableFor(CatalogEntry currentCatalogEntry)
currentCatalogEntry -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||