agave-tags/tags-core/src/main/java/org/iplantc/service/tags/model/Tag.java
/**
     * Add a {@link TaggedResource} and associate with this tag.
     * @param resource
     */
Add a  TaggedResource and associate with this tag.
@param resource
Add a TaggedResource and associate with this tag . @param resource
public boolean addTaggedResource(TaggedResource resource) {
    	for (TaggedResource taggedResource: this.taggedResources) {
    		if (StringUtils.equals(resource.getUuid(), taggedResource.getUuid())) {
    			return false;
    		}
    	}
        resource.setTag(this);
        this.taggedResources.add(resource);
        return true;
    }
public boolean addTaggedResource ( TaggedResource resource ) { for ( TaggedResource taggedResource : this . taggedResources ) { if ( StringUtils . equals ( resource . getUuid ( ) , taggedResource . getUuid ( ) ) ) { return false ; } } resource . setTag ( this ) ; this . taggedResources . add ( resource ) ; return true ; }
Add a {@link TaggedResource} and associate with this tag.
Add a { @link TaggedResource } and associate with this tag .
// don't add duplicates