|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MCRCategLinkService
| Method Summary | |
|---|---|
Map<MCRCategoryID,Number> |
countLinks(MCRCategory category,
boolean childrenOnly)
Counts links to a collection of categories. |
Map<MCRCategoryID,Number> |
countLinksForType(MCRCategory category,
String type,
boolean childrenOnly)
Counts links to a collection of categories. |
void |
deleteLink(String id)
Delete all links that refer to the given Object ID. |
void |
deleteLinks(Collection<String> ids)
Delete all links that refer to the given collection of Object IDs. |
Collection<String> |
getLinksFromCategory(MCRCategoryID id)
Returns a list of linked Object IDs. |
Collection<String> |
getLinksFromCategoryForType(MCRCategoryID id,
String type)
Returns a list of linked Object IDs restricted by the specified type. |
Collection<MCRCategoryID> |
getLinksFromObject(String id)
Returns a list of linked categories. |
Map<MCRCategoryID,Boolean> |
hasLinks(MCRCategory category)
Checks if a categories id refered by objects. |
void |
setLinks(MCRObjectReference objectReference,
Collection<MCRCategoryID> categories)
Add links between categories and Objects. |
| Method Detail |
|---|
Map<MCRCategoryID,Boolean> hasLinks(MCRCategory category)
category - a subtree rooted at a MCRCategory for which links should be counted
Map<MCRCategoryID,Number> countLinks(MCRCategory category,
boolean childrenOnly)
category - a subtree rooted at a MCRCategory for which links should be countedchildrenOnly - if only direct children of category should be queried (query may be more optimized)
Map<MCRCategoryID,Number> countLinksForType(MCRCategory category,
String type,
boolean childrenOnly)
categIDs - a subtree rooted at a MCRCategory for which links should be countedtype - restrict links that refer to object of this typechildrenOnly - if only direct children of category should be queried (query may be more optimized)
void deleteLink(String id)
id - an Object IDdeleteLinks(Collection)void deleteLinks(Collection<String> ids)
ids - a collection of Object IDsdeleteLink(String)Collection<String> getLinksFromCategory(MCRCategoryID id)
id - ID of the category
Collection<String> getLinksFromCategoryForType(MCRCategoryID id,
String type)
id - ID of the categorytype - restrict links that refer to object of this type
Collection<MCRCategoryID> getLinksFromObject(String id)
id - Object ID of a linked Object
void setLinks(MCRObjectReference objectReference,
Collection<MCRCategoryID> categories)
objectReference - reference to a Objectcategories - a collection of categoryIDs to be linked to#countLinks(Collection),
#countLinksForType(Collection, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||