com.sas.edir
Interface KeywordEntity
- All Superinterfaces:
- Caching, Entity, TrackedObject
- All Known Subinterfaces:
- Application, Archive, CatalogEntry, Channel, Content, ContentChannel, ContentDocument, ContentItem, ExternalFile, KeywordEntityCollection, Link, Mddb, StoredProcess, Table, WebEisDocument, Widget
- public interface KeywordEntity
- extends Entity
An interface for Enterprise Directory entities which all
the keyword attribute. This provides a common way to
access and manipulate the keywords.
- Version:
- 1.0
- Author:
- SAS
Method Summary |
void |
addKeyword(java.lang.String keyword)
Adds a keyword to this entity. |
java.util.Iterator |
keywordIterator()
Returns an iteration of all the keywords associated with this entity. |
java.util.ListIterator |
keywordIterator(java.util.Comparator compare)
Returns a sorted iteration of all the keywords associated with this
entity. |
void |
removeKeyword(java.lang.String keyword)
Removes a keyword from this entity. |
void |
setKeywords(java.util.List keywords)
Sets the keywords for this entity. |
Methods inherited from interface com.sas.edir.Entity |
addPropertyChangeListener, getContext, getCreateTime, getCreatorsName, getDescription, getEnterpriseDirectory, getGuid, getModifiersName, getModifyTime, getName, getObjectclass, removeModificationItems, removePropertyChangeListener, setDescription, setGuid, setName, setObjectclass |
keywordIterator
public java.util.Iterator keywordIterator()
- Returns an iteration of all the keywords associated with this entity.
- Returns:
- A String iteration.
keywordIterator
public java.util.ListIterator keywordIterator(java.util.Comparator compare)
- Returns a sorted iteration of all the keywords associated with this
entity.
- Parameters:
comparator
- A Comparator for sorting, or null for no sorting.- Returns:
- A String iteration.
addKeyword
public void addKeyword(java.lang.String keyword)
- Adds a keyword to this entity.
- Parameters:
keyword
- The keyword to add.- Throws:
NamingException
- Thrown for enterprise directory failure.
setKeywords
public void setKeywords(java.util.List keywords)
- Sets the keywords for this entity.
- Parameters:
keywords
- The list of keywords.- Throws:
NamingException
- Thrown for enterprise directory failure.
removeKeyword
public void removeKeyword(java.lang.String keyword)
- Removes a keyword from this entity.
- Parameters:
keyword
- The keyword to remove.