Package org.apache.directory.shared.ldap.exception

Examples of org.apache.directory.shared.ldap.exception.LdapOperationNotSupportedException


        LdapDN oriChildName = opContext.getDn();
        LdapDN parent = opContext.getParent();

        if ( oriChildName.getNormName().equalsIgnoreCase( subschemSubentryDn.getNormName() ) )
        {
            throw new LdapOperationNotSupportedException(
                "Can not allow the move of the subschemaSubentry (" +
                subschemSubentryDn + ") for the global schema: it is fixed at " + subschemSubentryDn,
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
       
View Full Code Here


                    ResultCodeEnum.NAMING_VIOLATION );
            }
            return;
        }

        throw new LdapOperationNotSupportedException( ResultCodeEnum.UNWILLING_TO_PERFORM );
    }
View Full Code Here

                    + VALID_OU_VALUES, ResultCodeEnum.NAMING_VIOLATION );
            }
            return;
        }

        throw new LdapOperationNotSupportedException( ResultCodeEnum.UNWILLING_TO_PERFORM );
    }
View Full Code Here

            metaSchemaHandler.modify( opContext.getDn(), modOp, mods, entry, targetEntry, cascade );
            updateSchemaModificationAttributes( opContext );
            return;
        }
       
        throw new LdapOperationNotSupportedException( ResultCodeEnum.UNWILLING_TO_PERFORM );
    }
View Full Code Here

            return;
        }

        LOG.error( String.format( "Unwilling to perform modify on %s:\n\nEntry:\n%s\n\nModifications:\n%s",
            opContext.getDn(), entry, opContext.getModItems() ) );
        throw new LdapOperationNotSupportedException( ResultCodeEnum.UNWILLING_TO_PERFORM );
    }
View Full Code Here

            metaSchemaHandler.rename( opContext.getDn(), entry, opContext.getNewRdn(), doCascadeModify );
            updateSchemaModificationAttributes( opContext );
            return;
        }
       
        throw new LdapOperationNotSupportedException( ResultCodeEnum.UNWILLING_TO_PERFORM );
    }
View Full Code Here

            metaSchemaHandler.replace( opContext.getDn(), opContext.getParent(), entry, cascade );
            updateSchemaModificationAttributes( opContext );
            return;
        }
       
        throw new LdapOperationNotSupportedException( ResultCodeEnum.UNWILLING_TO_PERFORM );
    }
View Full Code Here

                opContext.getDelOldDn(), entry, cascade );
            updateSchemaModificationAttributes( opContext );
            return;
        }
       
        throw new LdapOperationNotSupportedException( ResultCodeEnum.UNWILLING_TO_PERFORM );
    }
View Full Code Here

                case REMOVE_ATTRIBUTE :
                    modifyRemoveOperation( opContext, opAttrOid, serverAttribute, doCascadeModify );
                    break;
                   
                case REPLACE_ATTRIBUTE :
                    throw new LdapOperationNotSupportedException(
                        "Modify REPLACE operations on schema subentries are not allowed: " +
                        "it's just silly to destroy and recreate so many \nschema entities " +
                        "that reside in schema operational attributes.  Instead use \na " +
                        "targeted combination of modify ADD and REMOVE operations.",
                        ResultCodeEnum.UNWILLING_TO_PERFORM );
View Full Code Here

                }
           
                break;
               
            case( DirContext.REPLACE_ATTRIBUTE ):
                throw new LdapOperationNotSupportedException(
                    "Modify REPLACE operations on schema subentries are not allowed: " +
                    "it's just silly to destroy and recreate so many \nschema entities " +
                    "that reside in schema operational attributes.  Instead use \na " +
                    "targeted combination of modify ADD and REMOVE operations.",
                    ResultCodeEnum.UNWILLING_TO_PERFORM );
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.exception.LdapOperationNotSupportedException

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.