Examples of canDelete()


Examples of com.google.gerrit.server.project.RefControl.canDelete()

  private void assumeVisible(Ref ref, boolean visible, Set<String> targets) {
    RefControl rc = createStrictMock(RefControl.class);
    refMocks.add(rc);
    expect(rc.isVisible()).andReturn(visible);
    if (visible && !ref.isSymbolic() && !targets.contains(ref.getName())) {
      expect(rc.canDelete()).andReturn(true);
    }

    if (ref.isSymbolic()) {
      expect(pc.controlForRef(ref.getTarget().getName())).andReturn(rc);
    } else {
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.definitions.TypeMutability.canDelete()

            writer.writeStartElement(PREFIX_CMIS, TAG_TYPE_TYPE_MUTABILITY, NAMESPACE_CMIS);

            XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_TYPE_TYPE_MUTABILITY_CREATE, tm.canCreate());
            XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_TYPE_TYPE_MUTABILITY_UPDATE, tm.canUpdate());
            XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_TYPE_TYPE_MUTABILITY_DELETE, tm.canDelete());

            writeExtensions(writer, tm);
            writer.writeEndElement();
        }
        if (source.getPropertyDefinitions() != null) {
View Full Code Here

Examples of org.apache.muse.ws.resource.metadata.MetadataDescriptor.canDelete()

       
        while (i.hasNext())
        {
            QName propName = (QName)i.next();
           
            if (metadata.canDelete(propName) && !metadata.isReadOnlyExternal(propName))
            {
                //
                // check if there are any instances to delete
                //
                Element[] instances = getResourceProperty(propName);
View Full Code Here

Examples of org.apache.muse.ws.resource.metadata.MetadataDescriptor.canDelete()

       
        while (i.hasNext())
        {
            QName propName = (QName)i.next();
           
            if (metadata.canDelete(propName) && !metadata.isReadOnlyExternal(propName))
            {
                //
                // check if there are any instances to delete
                //
                Element[] instances = getResourceProperty(propName);
View Full Code Here

Examples of org.apache.sling.api.security.ResourceAccessSecurity.canDelete()

        final ResourceAccessSecurityTracker tracker = ctx.getResourceAccessSecurityTracker();
        boolean allowed = true;
        if ( useResourceAccessSecurity ) {
            final ResourceAccessSecurity security = tracker.getProviderResourceAccessSecurity();
            if ( security != null ) {
                allowed = security.canDelete(resource);
            } else {
                allowed = false;
            }
        }
View Full Code Here

Examples of org.apache.sling.api.security.ResourceAccessSecurity.canDelete()

        }

        if ( allowed ) {
            final ResourceAccessSecurity security = tracker.getApplicationResourceAccessSecurity();
            if (security != null) {
                allowed = security.canDelete(resource);
            }
        }
        return allowed;
    }
View Full Code Here

Examples of org.eclipse.graphiti.features.IDeleteFeature.canDelete()

                final IDeleteFeature df =
                    de.getDiagramTypeProvider(
                    ).getFeatureProvider().getDeleteFeature(
                        dc);

                assert(df.canDelete(dc));
                df.delete(dc);
              }});
      }}));
   
    SWTBotShell shell = mBot.shell("Confirm Delete");
View Full Code Here

Examples of org.eclipse.graphiti.features.IDeleteFeature.canDelete()

            false, false, toBeDeleted.size());
        for (Connection c : toBeDeleted) {
          DeleteContext dc = new DeleteContext(c);
          dc.setMultiDeleteInfo(mi);
          IDeleteFeature del = getFeatureProvider().getDeleteFeature(dc);
          if (del.canDelete(dc)) {
            del.delete(dc);
          }
        }
      }
      EcoreUtil.delete((LocalVariableStatement) obj);
View Full Code Here

Examples of org.eclipse.graphiti.features.IDeleteFeature.canDelete()

      }
     
      for (PictogramElement pe : toDelete) {
      DeleteContext dc = new DeleteContext(pe);
      IDeleteFeature del = getFeatureProvider().getDeleteFeature(dc);
      if (del.canDelete(dc)) {
        del.delete(dc);
        ret = true;
      }
      }
      return ret;
View Full Code Here

Examples of org.eclipse.graphiti.features.IDeleteFeature.canDelete()

                final IDeleteFeature df =
                    de.getDiagramTypeProvider(
                    ).getFeatureProvider().getDeleteFeature(
                        dc);

                assert(df.canDelete(dc));
                df.delete(dc);
              }});
      }}));

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.