org.openpermis.editor.policy.presenter
Class Problem

java.lang.Object
  extended by org.openpermis.editor.policy.presenter.Problem

public class Problem
extends Object

Describes a problem in a part.

Since:
0.3.0

Constructor Summary
Problem(org.openpermis.policy.bean.PartBean part, org.openpermis.policy.PartProblemReporter.ProblemMessage message, Object... parameters)
          Creates a new problem for the specified part, type and parameters.
 
Method Summary
static List<Problem> createProblemList(org.openpermis.policy.Policy policy)
          Creates a list of problem for the specified policy.
 boolean equals(Object obj)
           
 org.openpermis.policy.PartProblemReporter.ProblemMessage getMessage()
          Returns the type of the problem.
 Object[] getParameters()
          Returns the problem parameters.
 org.openpermis.policy.bean.PartBean getPart()
          Returns the part that has a problem.
 org.openpermis.policy.bean.SerialNumber getPartSerialNumber()
          Returns the serial number of the part that has a problem.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Problem

public Problem(org.openpermis.policy.bean.PartBean part,
               org.openpermis.policy.PartProblemReporter.ProblemMessage message,
               Object... parameters)
Creates a new problem for the specified part, type and parameters.

Parameters:
part - the part that has a problem.
message - the type of problem.
parameters - additional parameters for the problem.
Since:
0.3.0
Method Detail

createProblemList

public static final List<Problem> createProblemList(org.openpermis.policy.Policy policy)
Creates a list of problem for the specified policy.

Parameters:
policy - the policy for which to create the problem list.
Returns:
the problem list requested, never null.
Since:
0.3.0

getPartSerialNumber

public org.openpermis.policy.bean.SerialNumber getPartSerialNumber()
Returns the serial number of the part that has a problem.

Returns:
the serial number of the part that has a problem.
Since:
0.3.0

getPart

public org.openpermis.policy.bean.PartBean getPart()
Returns the part that has a problem.

Returns:
the part that has a problem.
Since:
0.3.0

getMessage

public org.openpermis.policy.PartProblemReporter.ProblemMessage getMessage()
Returns the type of the problem.

Returns:
the type of the problem.
Since:
0.3.0

getParameters

public Object[] getParameters()
Returns the problem parameters.

Returns:
the problem parameters.
Since:
0.3.0

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Since:
0.3.0

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
Since:
0.3.0

toString

public String toString()
Overrides:
toString in class Object
Since:
0.3.0


PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:33
Copyright (c) 2002-2007 Ergon Informatik AG