public static enum XarExtensionConfiguration.DocumentProtection extends Enum<XarExtensionConfiguration.DocumentProtection>
Enum Constant and Description |
---|
DENY
EDIT/DELETE right is denied for everyone except for admins who just get a warning.
|
DENYSIMPLE
EDIT/DELETE right is denied for simple users except for simple admins who just get a warning.
|
FORCEDDENY
EDIT/DELETE right is denied for everyone including admins.
|
FORCEDDENYSIMPLE
EDIT/DELETE right is denied for all simple users including simple admins.
|
NONE
No protection at all.
|
WARNING
Everyone get a warning when trying to edit a protected document.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDeny() |
boolean |
isForced() |
boolean |
isSimple() |
boolean |
isWarning() |
static XarExtensionConfiguration.DocumentProtection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XarExtensionConfiguration.DocumentProtection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XarExtensionConfiguration.DocumentProtection NONE
public static final XarExtensionConfiguration.DocumentProtection WARNING
public static final XarExtensionConfiguration.DocumentProtection DENY
public static final XarExtensionConfiguration.DocumentProtection FORCEDDENY
public static final XarExtensionConfiguration.DocumentProtection DENYSIMPLE
public static final XarExtensionConfiguration.DocumentProtection FORCEDDENYSIMPLE
public static XarExtensionConfiguration.DocumentProtection[] values()
for (XarExtensionConfiguration.DocumentProtection c : XarExtensionConfiguration.DocumentProtection.values()) System.out.println(c);
public static XarExtensionConfiguration.DocumentProtection valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isWarning()
public boolean isDeny()
public boolean isForced()
public boolean isSimple()
Copyright © 2004–2021 XWiki. All rights reserved.