public abstract class AbstractPrincipalList extends Object implements PrincipalList
PrincipalList
providing most common functionality.Modifier | Constructor and Description |
---|---|
protected |
AbstractPrincipalList() |
Modifier and Type | Method and Description |
---|---|
void |
add(String name)
Adds a name to the list.
|
Collection |
getList()
Gets list of roles as string.
|
String |
getName()
Gets name given to this principal.
|
boolean |
has(String name)
Checks if the role name exist in this list.
|
void |
setName(String name)
Sets principal name.
|
String |
toString() |
public String getName()
getName
in interface PrincipalList
getName
in interface Principal
public void setName(String name)
setName
in interface PrincipalList
public void add(String name)
add
in interface PrincipalList
public Collection getList()
getList
in interface PrincipalList
public boolean has(String name)
has
in interface PrincipalList
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.