Package nl.b3p.commons.security.xml
Class WebappUsers
- java.lang.Object
-
- nl.b3p.commons.security.xml.WebappUsers
-
- All Implemented Interfaces:
Serializable
public class WebappUsers extends Object implements Serializable
- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebappUsers()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRole(int index, Role vRole)
void
addRole(Role vRole)
void
addUser(int index, User vUser)
void
addUser(User vUser)
void
clearRole()
void
clearUser()
void
deleteMaxsessions()
Enumeration
enumerateRole()
Enumeration
enumerateUser()
int
getMaxsessions()
Returns the value of field 'maxsessions'.Role[]
getRole()
Role
getRole(int index)
int
getRoleCount()
User[]
getUser()
User
getUser(int index)
int
getUserCount()
boolean
hasMaxsessions()
boolean
isValid()
void
marshal(Writer out)
void
marshal(ContentHandler handler)
boolean
removeRole(Role vRole)
boolean
removeUser(User vUser)
void
setMaxsessions(int maxsessions)
Sets the value of field 'maxsessions'.void
setRole(int index, Role vRole)
void
setRole(Role[] roleArray)
void
setUser(int index, User vUser)
void
setUser(User[] userArray)
static WebappUsers
unmarshal(Reader reader)
void
validate()
-
-
-
Method Detail
-
addRole
public void addRole(Role vRole) throws IndexOutOfBoundsException
- Parameters:
vRole
-- Throws:
IndexOutOfBoundsException
-
addRole
public void addRole(int index, Role vRole) throws IndexOutOfBoundsException
- Parameters:
index
-vRole
-- Throws:
IndexOutOfBoundsException
-
addUser
public void addUser(User vUser) throws IndexOutOfBoundsException
- Parameters:
vUser
-- Throws:
IndexOutOfBoundsException
-
addUser
public void addUser(int index, User vUser) throws IndexOutOfBoundsException
- Parameters:
index
-vUser
-- Throws:
IndexOutOfBoundsException
-
clearRole
public void clearRole()
-
clearUser
public void clearUser()
-
deleteMaxsessions
public void deleteMaxsessions()
-
enumerateRole
public Enumeration enumerateRole()
-
enumerateUser
public Enumeration enumerateUser()
-
getMaxsessions
public int getMaxsessions()
Returns the value of field 'maxsessions'.- Returns:
- the value of field 'maxsessions'.
-
getRole
public Role getRole(int index) throws IndexOutOfBoundsException
- Parameters:
index
-- Throws:
IndexOutOfBoundsException
-
getRole
public Role[] getRole()
-
getRoleCount
public int getRoleCount()
-
getUser
public User getUser(int index) throws IndexOutOfBoundsException
- Parameters:
index
-- Throws:
IndexOutOfBoundsException
-
getUser
public User[] getUser()
-
getUserCount
public int getUserCount()
-
hasMaxsessions
public boolean hasMaxsessions()
-
isValid
public boolean isValid()
-
marshal
public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
- Parameters:
out
-- Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
-
marshal
public void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
- Parameters:
handler
-- Throws:
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
-
removeRole
public boolean removeRole(Role vRole)
- Parameters:
vRole
-
-
removeUser
public boolean removeUser(User vUser)
- Parameters:
vUser
-
-
setMaxsessions
public void setMaxsessions(int maxsessions)
Sets the value of field 'maxsessions'.- Parameters:
maxsessions
- the value of field 'maxsessions'.
-
setRole
public void setRole(int index, Role vRole) throws IndexOutOfBoundsException
- Parameters:
index
-vRole
-- Throws:
IndexOutOfBoundsException
-
setRole
public void setRole(Role[] roleArray)
- Parameters:
roleArray
-
-
setUser
public void setUser(int index, User vUser) throws IndexOutOfBoundsException
- Parameters:
index
-vUser
-- Throws:
IndexOutOfBoundsException
-
setUser
public void setUser(User[] userArray)
- Parameters:
userArray
-
-
unmarshal
public static WebappUsers unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
- Parameters:
reader
-- Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
-
validate
public void validate() throws org.exolab.castor.xml.ValidationException
- Throws:
org.exolab.castor.xml.ValidationException
-
-