org.systinet.wasp.admin.security
Class UserProperty

java.lang.Object
  extended byorg.systinet.wasp.admin.security.UserProperty

public class UserProperty
extends java.lang.Object

User property.

Component:
Security-Services

Constructor Summary
UserProperty()
          Creates a new instance of UserProperty
UserProperty(java.lang.String name, byte[] value)
          Creates a new instance of UserProperty with specified values.
 
Method Summary
 java.lang.String getPropertyName()
          Getter for property propertyName.
 byte[] getPropertyValue()
          Getter for property propertyValue.
static UserProperty[] mapToArray(java.util.Map map)
          Helps to create array of property objects from map.
 void setPropertyName(java.lang.String propertyName)
          Setter for property propertyName.
 void setPropertyValue(byte[] propertyValue)
          Setter for property propertyValue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserProperty

public UserProperty()
Creates a new instance of UserProperty


UserProperty

public UserProperty(java.lang.String name,
                    byte[] value)
Creates a new instance of UserProperty with specified values.

Parameters:
name - name of the property
value - value of the property
Method Detail

getPropertyName

public java.lang.String getPropertyName()
Getter for property propertyName.

Returns:
Value of property propertyName.

setPropertyName

public void setPropertyName(java.lang.String propertyName)
Setter for property propertyName.

Parameters:
propertyName - New value of property propertyName.

getPropertyValue

public byte[] getPropertyValue()
Getter for property propertyValue.

Returns:
Value of property propertyValue.

setPropertyValue

public void setPropertyValue(byte[] propertyValue)
Setter for property propertyValue.

Parameters:
propertyValue - New value of property propertyValue.

mapToArray

public static UserProperty[] mapToArray(java.util.Map map)
Helps to create array of property objects from map.

Parameters:
map - map from property names to byte arrays (values)
Returns:
array of property objects