org.moremotion.security
Class CheckPoint

java.lang.Object
  extended by org.moremotion.security.CheckPoint
All Implemented Interfaces:
java.lang.Comparable

public class CheckPoint
extends java.lang.Object
implements java.lang.Comparable

CheckPoint describes an authority to perform a task.

Version:
$Id: CheckPoint.java 51 2008-03-10 11:46:54Z erkan $

Constructor Summary
CheckPoint()
          Creates a new check point.
CheckPoint(java.lang.String name, java.lang.String description)
          Creates a new check point.
 
Method Summary
 int compareTo(java.lang.Object obj)
          Compares this check point to other.
 boolean equals(java.lang.Object obj)
          Compares the name of this checkpoint with the name of the given one and returns true when they are equal.
 java.lang.String getAttribute(java.lang.String name)
          Returns the value of the specified checkpoint attribute.
 java.util.Properties getAttributes()
          Returns the attribute of this checkpoint.
 java.lang.String getDescription()
          Returns check point description.
 java.lang.String getId()
          Returns check point identifier.
 java.lang.String getName()
          Returns check point name.
 void removeAttribute(java.lang.String name)
          Removes the specified attribute from this checkpoint.
 void setAttribute(java.lang.String name, java.lang.String value)
          Sets a user attribute to this checkpoint.
 void setDescription(java.lang.String description)
          Sets check point description.
 void setId(java.lang.String value)
          Sets check point identifier.
 void setName(java.lang.String name)
          Sets check point name.
 java.lang.String toString()
          Returns the string respresentation of this checkpoint.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckPoint

public CheckPoint()
Creates a new check point.


CheckPoint

public CheckPoint(java.lang.String name,
                  java.lang.String description)
Creates a new check point.

Parameters:
name - Check point name.
description - Check point description.
Method Detail

getName

public java.lang.String getName()
Returns check point name.


getDescription

public java.lang.String getDescription()
Returns check point description.


setName

public void setName(java.lang.String name)
Sets check point name.


setDescription

public void setDescription(java.lang.String description)
Sets check point description.


getId

public java.lang.String getId()
Returns check point identifier.


setId

public void setId(java.lang.String value)
Sets check point identifier.

For internal use only.


equals

public boolean equals(java.lang.Object obj)
Compares the name of this checkpoint with the name of the given one and returns true when they are equal.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Returns the string respresentation of this checkpoint.

Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(java.lang.Object obj)
Compares this check point to other.

Specified by:
compareTo in interface java.lang.Comparable

getAttributes

public java.util.Properties getAttributes()
Returns the attribute of this checkpoint.


setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)
Sets a user attribute to this checkpoint.


getAttribute

public java.lang.String getAttribute(java.lang.String name)
Returns the value of the specified checkpoint attribute.


removeAttribute

public void removeAttribute(java.lang.String name)
Removes the specified attribute from this checkpoint.



Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.