Package org.apache.jetspeed.om.security.ldap

Examples of org.apache.jetspeed.om.security.ldap.LDAPPermission


            throw new PermissionException("The permission '" +
                permission.getName() + "' already exists");
        }
        try
        {
            new LDAPPermission(permission.getName(), true).update(true);
        }
        catch(Exception e)
        {
            throw new PermissionException("Failed to create permission '" +
                permission.getName() + "'", e);
View Full Code Here


    public void removePermission(String permissionName)
        throws JetspeedSecurityException
    {
        try
        {
            LDAPPermission permission = new LDAPPermission(permissionName,false);
            JetspeedLDAP.deleteEntry(permission.getldapurl());

            if(cascadeDelete)
            {
            }
View Full Code Here

    public void grantPermission(String roleName, String permissionName)
        throws JetspeedSecurityException
    {
        BasicAttributes attr = new BasicAttributes();
        LDAPRole role;
        LDAPPermission permission;

        try
        {
            role = (LDAPRole)JetspeedSecurity.getRole(roleName);
            permission = (LDAPPermission)JetspeedSecurity.getPermission(permissionName);
View Full Code Here

    public Permission getPermission(String permissionName)
        throws JetspeedSecurityException
    {
        if (permissionExists(permissionName))
        {
            return new LDAPPermission(permissionName, false);
        }
        else
        {
            throw new PermissionException("Unknown permission '" + permissionName + "'");
        }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.om.security.ldap.LDAPPermission

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.