Examples of canEdit()


Examples of edu.uga.galileo.voci.model.WorkflowManager.canEdit()

    // user is deleting a community
    try {
      int communityId = Integer.parseInt(command.getOther().get(0));
      // first check permissions
      if (!workflowManager.canEdit(user, command.getProject(), command
          .getCommand(), communityId)) {
        errors.add("You don't have permission to delete "
            + "the requested community.");
      } else {
        try {
View Full Code Here

Examples of edu.uga.galileo.voci.model.WorkflowManager.canEdit()

    String[] vals = command.getOther().get(0).split("\\|");
    AuditLogManager alm = new AuditLogManager();
    int communityId = -1;
    try {
      communityId = Integer.parseInt(vals[2]);
      if (!workflowManager.canEdit(user, command.getProject(), command
          .getCommand(), communityId)) {
        errors.add("You don't have permission to edit "
            + "the requested community.");
        goToList = true;
      } else {
View Full Code Here

Examples of org.dspace.content.Item.canEdit()

        // Context Administrative options
        DSpaceObject dso = HandleUtil.obtainHandle(objectModel);
      if (dso instanceof Item)
      {
        Item item = (Item) dso;
        if (item.canEdit())
        {
                    context.setHead(T_context_head);
                    context.addItem().addXref(contextPath+"/admin/item?itemID="+item.getID(), T_context_edit_item);
                    if (AuthorizeManager.isAdmin(this.context, dso))
                    {
View Full Code Here

Examples of org.eclipse.dltk.internal.ui.wizards.BuildpathAttributeConfiguration.canEdit()

      BPListElementAttribute attrib = (BPListElementAttribute) firstElement;
      if (!attrib.isBuiltIn()) {
        BuildpathAttributeConfiguration config = fAttributeDescriptors
            .get(attrib.getKey());
        return config != null
            && config.canEdit(attrib.getBuildpathAttributeAccess());
      }
    }
    return true;
  }
View Full Code Here

Examples of org.fao.geonet.kernel.AccessManager.canEdit()

      throws Exception {
    GeonetContext gc = (GeonetContext) context
        .getHandlerContext(Geonet.CONTEXT_NAME);
    AccessManager am = gc.getBean(AccessManager.class);

    if (!am.canEdit(context, id))
      denyAccess(context);
  }

  /**
   * @return the absolute path of the folder choosen to store all deleted
View Full Code Here

Examples of org.freeplane.features.mode.ModeController.canEdit()

    boolean isEncryptedNode = false;
    boolean isOpened = false;
    final MapController mapController = modeController.getMapController();
    final NodeModel selectedNode = mapController.getSelectedNode();
    if (selectedNode != null) {
      if (modeController.canEdit()) {
        return true;
      }
      final EncryptionModel enode = EncryptionModel.getModel(selectedNode);
      if (enode != null) {
        isEncryptedNode = true;
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.