|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.examples.simple.HelloWorldUtilities
public final class HelloWorldUtilities
Helper functions used by the sample.
The helper functions have been moved here to prevent that the reader of the hello world gets distracted by auxiliary helper functions.
Field Summary | |
---|---|
static String |
COLLECT_LETTERS
|
static String |
INSERT_LETTER
|
static String |
JOHN
|
static String |
SARA
|
private static String[] |
VALID_ACTIONS
|
private static List<String[]> |
VALID_ARGS_LIST
List of valid command line arguments. |
private static String[] |
VALID_PRINCIPALS
|
Constructor Summary | |
---|---|
private |
HelloWorldUtilities()
Objects of this class cannot be instantiated. |
Method Summary | |
---|---|
static void |
fatalError(String message,
Throwable cause)
Logs a fatal error and terminates the application. |
static List<String[]> |
validateInput(String[] args)
Simple helper function to validate the command line arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SARA
"cn=sara,o=post,c=ch"
public static final String JOHN
"cn=john,o=post,c=ch"
public static final String INSERT_LETTER
"insertLetter"
public static final String COLLECT_LETTERS
"collectLetters"
private static final List<String[]> VALID_ARGS_LIST
private static final String[] VALID_PRINCIPALS
private static final String[] VALID_ACTIONS
Constructor Detail |
---|
private HelloWorldUtilities()
Method Detail |
---|
public static List<String[]> validateInput(String[] args)
args
- the arguments to validate.
public static final void fatalError(String message, Throwable cause)
message
- the message to log.cause
- the cause of the fatal error.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:48
Copyright (c) 2002-2007 Ergon Informatik AG