Package org.omegazero.common.logging
Class LoggerUtil.LUPermission
java.lang.Object
java.security.Permission
org.omegazero.common.logging.LoggerUtil.LUPermission
- All Implemented Interfaces:
Serializable
,Guard
- Enclosing class:
- LoggerUtil
Represents a permission checked by the security manager when an operation is performed that changes the logging state.
The following permissions are checked:
name | action | attachment | Checked by |
---|---|---|---|
settings | init | LoggerUtil.init(LogLevel, String) | |
settings | close | LoggerUtil.close() | |
settings | setSyncFlush | The new boolean value | LoggerUtil.setSyncFlush(boolean) |
settings | setLogLevel | The new LogLevel | LoggerUtil.setLogLevel(LogLevel) |
io | redirectStd | LoggerUtil.redirectStandardOutputStreams() | |
io | useStderr | The new boolean value | LoggerUtil.setUseStderr(boolean) |
logListener | addRegular | LoggerUtil.addLogListener(BiConsumer) | |
logListener | addFine | LoggerUtil.addFineLogListener(BiConsumer) | |
logger | create | Full class name of the logger | LoggerUtil.createLogger() |
logger | mute | Full class name of the logger | LoggerUtil.muteLogger(String) |
logger | unmute | Full class name of the logger | LoggerUtil.unmuteLogger(String) |
loggerOutput | add | The instance | LoggerUtil.addLoggerOutput(LoggerOutput) |
loggerOutput | remove | The instance | LoggerUtil#removeLoggerOutput(String) |
All permissions are an instance of this class. name is the string returned by Permission.getName()
, action is a string returned by getActions()
,
attachment any object involved in the checked operation returned by getAttachment()
.
- Since:
- 2.5
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LUPermission
(String name, String actions, Object attachment) -
Method Summary
Modifier and TypeMethodDescriptionvoid
check()
boolean
int
hashCode()
boolean
implies
(Permission permission) Methods inherited from class java.security.Permission
checkGuard, getName, newPermissionCollection, toString
-
Constructor Details
-
LUPermission
-
-
Method Details
-
implies
- Specified by:
implies
in classPermission
-
equals
- Specified by:
equals
in classPermission
-
hashCode
public int hashCode()- Specified by:
hashCode
in classPermission
-
getActions
- Specified by:
getActions
in classPermission
-
getAttachment
-
check
public void check()
-