eu.xtreemos.xosd.localallocmgr.attributes
Class OwnersInfo

java.lang.Object
  extended by eu.xtreemos.xosd.localallocmgr.attributes.OwnersInfo
All Implemented Interfaces:
java.io.Serializable

public class OwnersInfo
extends java.lang.Object
implements java.io.Serializable

class dealing with the information about the owner, for now we only hold the info about the owners keys and names In the future, one can hold info about the certificates, etc... (intstead of the second String parameter in the hashtable).

Author:
urosjovanovic
See Also:
Serialized Form

Field Summary
 java.util.Hashtable<java.lang.String,java.lang.String> owners
           
 
Constructor Summary
OwnersInfo()
           
OwnersInfo(java.lang.String owner, java.lang.String fullName)
           
 
Method Summary
 boolean add(OwnersInfo info)
          false means that some of the new owners already existed in the owner-list
 boolean add(java.lang.String newOwner, java.lang.String fullName)
          full name can be empty ("") but not null
 OwnersInfo clone()
           
 boolean equals(java.lang.Object obj)
          returns true if o holds subset of elements stored in this object
 boolean remove(OwnersInfo info)
          false means that some of the names did not exist and therefore could not be removed from the owners list
 boolean remove(java.lang.String owner)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owners

public java.util.Hashtable<java.lang.String,java.lang.String> owners
Constructor Detail

OwnersInfo

public OwnersInfo(java.lang.String owner,
                  java.lang.String fullName)

OwnersInfo

public OwnersInfo()
Method Detail

add

public boolean add(java.lang.String newOwner,
                   java.lang.String fullName)
full name can be empty ("") but not null

Parameters:
newOwner -
fullName -
Returns:

add

public boolean add(OwnersInfo info)
false means that some of the new owners already existed in the owner-list

Parameters:
info -
Returns:

remove

public boolean remove(java.lang.String owner)

remove

public boolean remove(OwnersInfo info)
false means that some of the names did not exist and therefore could not be removed from the owners list

Parameters:
info -
Returns:

equals

public boolean equals(java.lang.Object obj)
returns true if o holds subset of elements stored in this object

Overrides:
equals in class java.lang.Object
Parameters:
o -
Returns:

clone

public OwnersInfo clone()
Overrides:
clone in class java.lang.Object