Beispiel #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());
    }
  }
Beispiel #2
0
 public void deleteInherentTag(String resourceUuid) {
   tagMgr.deleteSystemTag(tagFormat, resourceUuid, resourceClass.getSimpleName(), true);
 }
Beispiel #3
0
 public void delete(String resourceUuid) {
   tagMgr.deleteSystemTag(tagFormat, resourceUuid, resourceClass.getSimpleName(), false);
 }