|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.common.subject.NamedScope
public class NamedScope
A scope with a name.
Field Summary |
---|
Fields inherited from interface org.n52.security.common.subject.Scope |
---|
GLOBAL |
Constructor Summary | |
---|---|
NamedScope(String name)
Constructor creates a new NamedScope with the specified name. |
|
NamedScope(String name,
Scope scope)
Constructor creates a new NamedScope with the specified name. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getName()
Method gets the name of this NamedScope object. |
Scope |
getScope()
Method gets the scope of this NamedScope object. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NamedScope(String name) throws IllegalArgumentException
name
- the name != null.
IllegalArgumentException
- if the given string is null.public NamedScope(String name, Scope scope) throws IllegalArgumentException
name
- the name != null.scope
- the scope != null.
IllegalArgumentException
- if the given string is null.Method Detail |
---|
public String getName()
getName
in interface Scope
Scope.getName()
public Scope getScope()
getScope
in interface Scope
Scope.getScope()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |