/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2008-2010 Sun Microsystems, Inc.
* Portions Copyright 2014-2015 ForgeRock AS
*/
/**
* This class implements an enumeration that defines the set of
* privileges available in the Directory Server.
*/
mayInstantiate=false,
mayExtend=false,
mayInvoke=true)
public enum Privilege
{
/**
* The privilege that provides the ability to bypass access control
* evaluation.
*/
/**
* The privilege that provides the ability to bypass server
* lockdown mode.
*/
/**
* The privilege that provides the ability to modify access control
* rules.
*/
/**
* The privilege that provides the ability to read the server
* configuration.
*/
/**
* The privilege that provides the ability to update the server
* configuration.
*/
/**
* The privilege that provides the ability to perform read
* operations via JMX.
*/
/**
* The privilege that provides the ability to perform write
* operations via JMX.
*/
/**
* The privilege that provides the ability to subscribe to JMX
* notifications.
*/
/**
* The privilege that provides the ability to perform LDIF import
* operations.
*/
/**
* The privilege that provides the ability to perform LDIF export
* operations.
*/
/**
* The privilege that provides the ability to perform backend backup
* operations.
*/
/**
* The privilege that provides the ability to perform backend
* restore operations.
*/
/**
* The privilege that provides the ability to lockdown a server.
*/
/**
* The privilege that provides the ability to request a server
* shutdown.
*/
/**
* The privilege that provides the ability to request a server
* restart.
*/
/**
* The privilege that provides the ability to perform proxied
* authorization or request an alternate authorization identity.
*/
/**
* The privilege that provides the ability to terminate arbitrary
* client connections.
*/
/**
* The privilege that provides the ability to cancel arbitrary
* client requests.
*/
/**
* The privilege that provides the ability to reset user passwords.
*/
/**
* The privilege that provides the ability to participate in a
* data synchronization environment.
*/
/**
* The privilege that provides the ability to update the server
* schema.
*/
/**
* The privilege that provides the ability to change the set of
* privileges for a user, or to change the set of privileges
* automatically assigned to a root user.
*/
/**
* The privilege that provides the ability to perform an unindexed
* search in the JE backend.
*/
/**
* The privilege that provides the ability to perform write
* operations on LDAP subentries.
*/
/**
* The privilege that provides the ability to perform read
* operations on the changelog.
*/
/** A map that will be used to hold a mapping between privilege names and enum values. */
/**
* The set of privileges that will be automatically assigned to root
* users if the root privilege set is not specified in the configuration.
*/
/** The human-readable name for this privilege. */
static
{
{
}
}
/**
* Creates a new privilege with the provided name.
*
* @param privilegeName The human-readable name for this policy.
*/
{
this.privilegeName = privilegeName;
}
/**
* Retrieves the name for this privilege.
*
* @return The name for this privilege.
*/
{
return privilegeName;
}
/**
* Retrieves the privilege with the specified name.
*
* @param lowerPrivName The name of the privilege to retrieve,
* formatted in all lowercase characters.
*
* @return The requested privilege, or {@code null} if the provided
* value is not the name of a valid privilege.
*/
{
}
/**
* Retrieves the human-readable name for this privilege.
*
* @return The human-readable name for this privilege.
*/
{
return privilegeName;
}
/**
* Retrieves the set of available privilege names.
*
* @return The set of available privilege names.
*/
{
}
/**
* Retrieves the set of privileges that should be automatically
* granted to root users if the root privilege set is not specified
* in the configuration.
*
* @return The set of privileges that should be automatically
* granted to root users if the root privilege set is not
* specified in the configuration.
*/
{
return DEFAULT_ROOT_PRIV_SET;
}
}