public interface TaggingRegistry
Modifier and Type | Method and Description |
---|---|
void |
addTagsForContent(URI pIdentifier,
List<TagRelation> pTagRelations)
This method will add a relation between a content item and a list of tags.
|
void |
addTagsForContent(URI pIdentifier,
List<TagRelation> pTagRelations,
boolean pUpdateSearchIndex)
This method will add a relation between a content item and a list of tags.
|
void |
expire(Tag pTag)
Expires the provided tag from cache
|
Map<TagStructure,List<Hit>> |
findTagByName(String pStartsWith)
Deprecated.
use Solr instead.
|
Map<TagStructure,List<Hit>> |
findTagByName(String pStartsWith,
List<URI> pSchemes)
Deprecated.
use Solr instead.
|
Map<TagStructure,List<Hit>> |
findTagByNameInParent(String pStartsWith,
URI pParent)
Deprecated.
use Solr instead.
|
ProtectionDomain |
getProtectionDomainFor(TagStructure pTagStructure) |
Tag |
getTag(long pTagDatabaseId,
URI pScheme)
Gets a tag by the given database id and the tag structure scheme of the tag .
|
Tag |
getTag(URI pTagIdentifier)
Gets a tag for a
tag identifier . |
List<URI> |
getTagSchemes() |
List<TagRelation> |
getTagsForContent(URI pContentIdentifier)
Find all tags for the given content item.
|
TagStructure |
getTagStructure(URI pScheme)
Gets the tag structure by iterating over the registered back-ends and returning the first
tag structure that matches the given scheme.
|
Tag getTag(URI pTagIdentifier) throws ClassificationException
tag identifier
.pTagIdentifier
- the tag identifier, can not be null.IllegalArgumentException
- if the tag identifier is null.ClassificationException
- if loading of tag fails.Tag getTag(long pTagDatabaseId, URI pScheme) throws ClassificationException
pTagDatabaseId
- the database it of the tag.pScheme
- the scheme of the tag structure of the tag.ClassificationException
List<URI> getTagSchemes() throws ClassificationException
ClassificationException
TagStructure getTagStructure(URI pScheme) throws ClassificationException
pScheme
- is the scheme of a tag structure.ClassificationException
- - if an error occurs while trying to retrieve the tag structure.void addTagsForContent(URI pIdentifier, List<TagRelation> pTagRelations)
pIdentifier
- The identifier for the content item to tagpTagRelations
- The list of TagRelation
s to to tag the content item. This will replace all previous tags for this content item.void addTagsForContent(URI pIdentifier, List<TagRelation> pTagRelations, boolean pUpdateSearchIndex)
pIdentifier
- The identifier for the content item to tagpTagRelations
- The list of TagRelation
s to to tag the content item. This will replace all previous tags for this content item.pUpdateSearchIndex
- if true
, this method will update the search indexList<TagRelation> getTagsForContent(URI pContentIdentifier)
pContentIdentifier
- The identifier for the content itemList
of TagRelation
's for the content identified by pContentIdentifierIllegalStateException
PersistentStoreException
@Deprecated Map<TagStructure,List<Hit>> findTagByName(String pStartsWith)
@Deprecated Map<TagStructure,List<Hit>> findTagByNameInParent(String pStartsWith, URI pParent)
@Deprecated Map<TagStructure,List<Hit>> findTagByName(String pStartsWith, List<URI> pSchemes)
ProtectionDomain getProtectionDomainFor(TagStructure pTagStructure)
void expire(Tag pTag)
pTag
- the tag to expire from cache© 1998- 2018 Stibo DX