Exemplo n.º 1
0
  private SystemTagInventory createTag(
      String resourceUuid, Class resourceClass, boolean inherent, boolean recreate) {
    if (recreate) {
      tagMgr.deleteSystemTag(tagFormat, resourceUuid, resourceClass.getSimpleName(), inherent);
    }

    if (inherent) {
      return (SystemTagInventory)
          tagMgr.createSysTag(resourceUuid, tagFormat, resourceClass.getSimpleName());
    } else {
      return tagMgr.createNonInherentSystemTag(
          resourceUuid, tagFormat, resourceClass.getSimpleName());
    }
  }
Exemplo n.º 2
0
 public void deleteInherentTag(String resourceUuid) {
   tagMgr.deleteSystemTag(tagFormat, resourceUuid, resourceClass.getSimpleName(), true);
 }
Exemplo n.º 3
0
 public void delete(String resourceUuid) {
   tagMgr.deleteSystemTag(tagFormat, resourceUuid, resourceClass.getSimpleName(), false);
 }