|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.security.voms.operation.QuestionHelper
A helper class for writing classes implementing the Question
interface. This is the place to store static attributes and methods which
are shared between a lot of action types.
At the moment, QuestionHelper
contains only a reference to
the current container naming scheme, which would otherwise have to be
included in most of the individual questions. It is expected that new
attributes and/or methods will be later added to this class, most notably
those associated with the notification mechanism. All question types should
be derived from QuestionHelper
in order to work without source
code changes when the Question
interface is extended with new methods.
Field Summary | |
protected static ContainerNamingScheme |
cns
The container naming scheme for this instance of VOMS. |
private static org.apache.log4j.Logger |
log
Logger. |
Constructor Summary | |
QuestionHelper()
|
Method Summary | |
abstract java.lang.Object |
ask()
Do the query that this question represents, without ACL checks, and return the result as an Object .
|
void |
checkPermission()
Check that the current client (as specified by the current security context) has the right to ask this question. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final ContainerNamingScheme cns
private static final org.apache.log4j.Logger log
Constructor Detail |
public QuestionHelper()
Method Detail |
public void checkPermission() throws VOMSException
Question
VOMSSecurityException
.
checkPermission
in interface Question
VOMSException
SecurityContext
public abstract java.lang.Object ask() throws VOMSException
Question
Object
.
Errors must be signalled by throwing an exception.
ask
in interface Question
VOMSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |