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