Class Warning
- java.lang.Object
-
- org.apache.directory.fortress.core.model.Warning
-
- All Implemented Interfaces:
Serializable
public class Warning extends Object implements Serializable
This entity is stored onSession
and is used to pass warnings that occur during role activation and password policy validation.Contains data from event that occurs during session initialization:
- ------------------------------------------
-
id
-
msg
-
type
-
name
- ------------------------------------------
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Warning.Type
Type determines if warning is of type Role or Password Policy.
-
Constructor Summary
Constructors Constructor Description Warning()
Warning(int id, String msg, Warning.Type type)
Warning(int id, String msg, Warning.Type type, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
String
getMsg()
String
getName()
Warning.Type
getType()
void
setId(int id)
void
setMsg(String msg)
void
setName(String name)
void
setType(Warning.Type type)
String
toString()
-
-
-
Constructor Detail
-
Warning
public Warning()
-
Warning
public Warning(int id, String msg, Warning.Type type)
- Parameters:
id
-msg
-type
-
-
Warning
public Warning(int id, String msg, Warning.Type type, String name)
- Parameters:
id
-msg
-type
-name
-
-
-
Method Detail
-
getId
public int getId()
-
setId
public void setId(int id)
-
getMsg
public String getMsg()
-
setMsg
public void setMsg(String msg)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getType
public Warning.Type getType()
-
setType
public void setType(Warning.Type type)
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-