|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.telscenter.sail.webapp.service.tag.impl.TagServiceImpl
public class TagServiceImpl
| Constructor Summary | |
|---|---|
TagServiceImpl()
|
|
| Method Summary | |
|---|---|
Tag |
createOrGetTag(String name)
Given a String name, returns the Tag tag with
the given name if it exists, creates and returns one if not. |
Tag |
getTagById(Long id)
Given a Long tag id, returns the tag associated with that
id, returns null if it does not exist. |
boolean |
isFromDatabase(Tag tag)
Returns boolean true iff the given Tag tag is
a tag that was retrieved from the database, returns false otherwise. |
void |
removeIfOrphaned(Long tagId)
Given a Long tag id of a tag that has just been removed
from a project, checks to see if this now makes this tag an orphan
and removes it from the database if it is. |
void |
setTagDao(TagDao<Tag> tagDao)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TagServiceImpl()
| Method Detail |
|---|
@Transactional(readOnly=true) public Tag getTagById(Long id)
TagServiceLong tag id, returns the tag associated with that
id, returns null if it does not exist.
getTagById in interface TagServiceTagService.getTagById(java.lang.Long)@Transactional public Tag createOrGetTag(String name)
TagServiceString name, returns the Tag tag with
the given name if it exists, creates and returns one if not.
createOrGetTag in interface TagServiceTagService.createOrGetTag(java.lang.String)public boolean isFromDatabase(Tag tag)
TagServiceboolean true iff the given Tag tag is
a tag that was retrieved from the database, returns false otherwise.
isFromDatabase in interface TagServiceTagService.isFromDatabase(org.telscenter.sail.webapp.domain.project.Tag)@Transactional public void removeIfOrphaned(Long tagId)
TagServiceLong tag id of a tag that has just been removed
from a project, checks to see if this now makes this tag an orphan
and removes it from the database if it is.
removeIfOrphaned in interface TagServiceTagService.removeIfOrphaned(java.lang.Long)public void setTagDao(TagDao<Tag> tagDao)
tagDao - the tagDao to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||