Examples of modify()


Examples of net.pterodactylus.sone.data.Album.modify()

      Album parent = webInterface.getCore().getAlbum(parentId, false);
      if (parentId.equals("")) {
        parent = currentSone.getRootAlbum();
      }
      Album album = webInterface.getCore().createAlbum(currentSone, parent);
      album.modify().setTitle(name).setDescription(TextFilter.filter(request.getHttpRequest().getHeader("host"), description)).update();
      webInterface.getCore().touchConfiguration();
      throw new RedirectException("imageBrowser.html?album=" + album.getId());
    }
  }
View Full Code Here

Examples of net.pterodactylus.sone.data.Image.modify()

        String title = request.getHttpRequest().getPartAsStringFailsafe("title", 100).trim();
        String description = request.getHttpRequest().getPartAsStringFailsafe("description", 1024).trim();
        if (title.length() == 0) {
          templateContext.set("titleMissing", true);
        }
        image.modify().setTitle(title).setDescription(TextFilter.filter(request.getHttpRequest().getHeader("host"), description)).update();
      }
      webInterface.getCore().touchConfiguration();
      throw new RedirectException(returnPage);
    }
  }
View Full Code Here

Examples of net.sf.sahi.stream.filter.HTMLModifierFilter.modify()

          }
              }
              if (html) {
          HTMLModifierFilter htmlModifierFilter = new HTMLModifierFilter(charset, isXHTML(), isSSL);
          htmlModifierFilter.modifyHeaders(response);
          dataString = htmlModifierFilter.modify(dataString);
              }
        JSModifierFilter jsModifierFilter = new JSModifierFilter(charset);
        dataString = jsModifierFilter.modify(dataString);
       
        try {
View Full Code Here

Examples of net.sf.sahi.stream.filter.JSModifierFilter.modify()

          HTMLModifierFilter htmlModifierFilter = new HTMLModifierFilter(charset, isXHTML(), isSSL);
          htmlModifierFilter.modifyHeaders(response);
          dataString = htmlModifierFilter.modify(dataString);
              }
        JSModifierFilter jsModifierFilter = new JSModifierFilter(charset);
        dataString = jsModifierFilter.modify(dataString);
       
        try {
          setData(dataString.getBytes(charset));
        } catch (UnsupportedEncodingException e) {
          e.printStackTrace();
View Full Code Here

Examples of netscape.ldap.LDAPConnection.modify()

          return;
        }
              LDAPModificationSet attrs = new LDAPModificationSet();
                addattrs(hr.get("modattr"), attrs, actions);
        System.out.println ( attrs );
              ld.modify( dn, attrs );
            } else if (hr.get("delete") != null) {
                ld.delete(dn);
            } else if (hr.get("add") != null) {
                String add = hr.get("add");
View Full Code Here

Examples of org.apache.directory.ldap.client.api.LdapConnection.modify()

        Attribute description = new DefaultAttribute( "description", sb.toString() );

        try
        {
            Modification modification = new DefaultModification( ModificationOperation.ADD_ATTRIBUTE, description );
            connection.modify( "cn=the person, ou=system", modification );
            fail();
        }
        catch ( Exception e )
        {
            // We are expecting the session to be close here.
View Full Code Here

Examples of org.apache.directory.ldap.client.api.LdapNetworkConnection.modify()

        Attribute description = new DefaultAttribute( "description", sb.toString() );

        try
        {
            Modification modification = new DefaultModification( ModificationOperation.ADD_ATTRIBUTE, description );
            connection.modify( "cn=the person, ou=system", modification );
            fail();
        }
        catch ( Exception e )
        {
            // We are expecting the session to be close here.
View Full Code Here

Examples of org.apache.directory.server.core.CoreSession.modify()

        LdapPrincipal principal = new LdapPrincipal( userDn, AuthenticationLevel.SIMPLE );
        CoreSession akarasuluSession = service.getSession( principal );

        try
        {
            akarasuluSession.modify(
                new DN( "uid=admin,ou=system" ), mods );
            fail( "User 'uid=admin,ou=system' should not be able to modify attributes on admin" );
        }
        catch ( Exception e )
        {
View Full Code Here

Examples of org.apache.directory.server.core.OperationManager.modify()

        // Inject the referral handling into the operation context
        injectReferralControl( opCtx );
       
        // execute modify operation
        OperationManager operationManager = service.getOperationManager();
        operationManager.modify( opCtx );

        // clear the request controls and set the response controls
        requestControls = EMPTY_CONTROLS;
        responseControls = JndiUtils.toJndiControls( opCtx.getResponseControls() );
    }
View Full Code Here

Examples of org.apache.directory.server.core.api.CoreSession.modify()

        LdapPrincipal principal = new LdapPrincipal( getService().getSchemaManager(), userDn, AuthenticationLevel.SIMPLE );
        CoreSession akarasuluSession = getService().getSession( principal );

        try
        {
            akarasuluSession.modify( new Dn( "uid=admin,ou=system" ), mod );
            fail( "User 'uid=admin,ou=system' should not be able to modify attributes on admin" );
        }
        catch ( Exception e )
        {
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.