|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TagManager
Interface for classes responsible for managing things important to Tag objects
| Method Summary | |
|---|---|
java.util.Collection |
getAllTags()
|
java.util.Collection |
getChildren(int tagId)
Gets all the children of this tag |
User |
getCreator(int userId)
Gets this tag's creator from the storage medium |
java.util.Collection |
getPlacesWithTag(int tagId)
Returns all the places with a given tag |
Tag |
getTag(int tagId)
|
java.util.Collection |
getTagsForPlace(int placeId)
Return all the tags that a given place has been tagged by |
int |
insertTag(java.lang.String name,
java.lang.String desc,
int creatorId,
int parentId)
Inserts a new tag into the storage medium |
boolean |
removeTag(int tagId)
Removes a tag from the storage medium |
boolean |
updateTag(int tagId,
java.lang.String name,
java.lang.String desc,
int creatorId,
int parentId)
Updates the value of a tag in the storage medium |
| Method Detail |
|---|
Tag getTag(int tagId)
tagId - A unique identifier of a tag in the storage medium
java.util.Collection getAllTags()
int insertTag(java.lang.String name,
java.lang.String desc,
int creatorId,
int parentId)
name - The name for this tagdesc - Optional description for this tag, null if ommitted.creatorId - Id of the user who created this tagparentId - Id of the parent of this tag, or -1 for no parent.
boolean updateTag(int tagId,
java.lang.String name,
java.lang.String desc,
int creatorId,
int parentId)
tagId - The tag to be updatedname - The new name for this tagdesc - The new description for this tag, null for no descriptioncreatorId - The new id for user that created this tagparentId - The new parent id for this tag (or -1 fo no parent)
boolean removeTag(int tagId)
tagId - The tag to remove
java.util.Collection getChildren(int tagId)
tagId - Id of the tag whose children should be retrieved
User getCreator(int userId)
userId - The id of the user to retrieve
java.util.Collection getPlacesWithTag(int tagId)
tagId - the tagId to retrieve places for
java.util.Collection getTagsForPlace(int placeId)
placeId - the place to get tags for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||