com.ibm.datapower.wamt.dataAPI.local.filesystem
Class StoredTagImpl

java.lang.Object
  extended by com.ibm.datapower.wamt.dataAPI.local.filesystem.StoredTagImpl
All Implemented Interfaces:
Persistable, StoredTag

public class StoredTagImpl
extends java.lang.Object
implements StoredTag


Field Summary
 
Fields inherited from interface com.ibm.datapower.wamt.dataAPI.StoredTag
COPYRIGHT_2012
 
Fields inherited from interface com.ibm.datapower.wamt.dataAPI.Persistable
COPYRIGHT_2009_2010, SCM_REVISION
 
Method Summary
 void add(StoredDevice device)
          Adds the specified device to this tag.
 void add(StoredDomain domain)
          Adds the specified domain to this tag.
 void delete()
           
 StoredDevice[] getDeviceMembers()
          Gets the array of devices which are members of this tag.
 StoredDomain[] getDomainMembers()
          Gets the array of domains which are members of this tag.
 java.lang.String getName()
          Gets the name of this StoredTag.
 java.lang.String getPrimaryKey()
           Note: The Local File System implementation uses the name of the ManagesSet as the unique identifier for this object.
 java.lang.String getValue()
          Gets the value of this StoredTag.
 void remove(StoredDevice device)
          Removes the specified device from this tagged set.
 void remove(StoredDomain domain)
          Removes the specified domain from this tagged set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDeviceMembers

public StoredDevice[] getDeviceMembers()
Description copied from interface: StoredTag
Gets the array of devices which are members of this tag.

Specified by:
getDeviceMembers in interface StoredTag
Returns:
an array of devices which are members of this tag.
See Also:
This is invoked by {@link com.ibm.datapower.wamt.clientAPI.Device#getTagNames()}

getDomainMembers

public StoredDomain[] getDomainMembers()
Description copied from interface: StoredTag
Gets the array of domains which are members of this tag.

Specified by:
getDomainMembers in interface StoredTag
Returns:
an array of devices which are members of this tag
See Also:
This is invoked by {@link com.ibm.datapower.wamt.clientAPI.Domain#getTagNames()}

getName

public java.lang.String getName()
Description copied from interface: StoredTag
Gets the name of this StoredTag. This name should be human-consumable. The name is immutable, so there is no setName(String) method.

Specified by:
getName in interface StoredTag
Returns:
name of this StoredTag.

getValue

public java.lang.String getValue()
Description copied from interface: StoredTag
Gets the value of this StoredTag. This value should be human-consumable. The value is immutable, so there is no setName(String) method.

Specified by:
getValue in interface StoredTag
Returns:
name of this StoredTag.

remove

public void remove(StoredDevice device)
Description copied from interface: StoredTag
Removes the specified device from this tagged set. This is invoked by Device.removeTag(String) The removed device is still persisted in the repository though it is no longer tagged by this tag. You can reverse this by adding the device back to the tag.

Specified by:
remove in interface StoredTag
Parameters:
device - the device to remove
See Also:
StoredTag.add(StoredDevice), StoredTag.getDeviceMembers()

remove

public void remove(StoredDomain domain)
Description copied from interface: StoredTag
Removes the specified domain from this tagged set. This is invoked by StoredDomain.remove(StoredTag) and ) The removed domain is still persisted in the repository though it is no longer tagged by this tag. You can reverse this by adding the domain back to the tag.

Specified by:
remove in interface StoredTag
Parameters:
domain - the domain to remove
See Also:
StoredTag.add(StoredDomain), StoredTag.getDomainMembers()

delete

public void delete()
            throws DatastoreException,
                   NotEmptyInRepositoryException

getPrimaryKey

public java.lang.String getPrimaryKey()

Note: The Local File System implementation uses the name of the ManagesSet as the unique identifier for this object. The name is immutable, so there is no setName(String) method.

Specified by:
getPrimaryKey in interface Persistable
Returns:
A string uniquely identifying this persisted object

add

public void add(StoredDevice device)
Description copied from interface: StoredTag
Adds the specified device to this tag. This is invoked by Device.addTag(String, String)

Specified by:
add in interface StoredTag
Parameters:
device - the device to add
See Also:
StoredTag.add(StoredDomain)

add

public void add(StoredDomain domain)
Description copied from interface: StoredTag
Adds the specified domain to this tag. This is invoked by Domain.addTag(String, String)

Specified by:
add in interface StoredTag
Parameters:
domain - the domain to add
See Also:
StoredTag.add(StoredDevice)


© Copyright IBM Corp. 2006, 2010 All Rights Reserved.