Examples of canCreate()


Examples of clips.delegate.doctor.certificate.CertificateLocal.canCreate()

    private void btCertificateActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_btCertificateActionPerformed
    {//GEN-HEADEREND:event_btCertificateActionPerformed
        if (isInnerPanelClear()) {
            try {
                CertificateLocal cl = new CertificateLocal(clientLocal, selectedDiseaseNode != null ? selectedDiseaseNode.getDelegate() : null);
                if (!cl.canCreate()) {
                    throw new ClipsException(SecurityChecker.getClientHasNoRightMsg(UserRightsSet.MODIFY_CERTIFICATE.id));
                }
                ClientNode root = (ClientNode) treeEMC.getModel().getRoot();
                for (int i = 0; i < root.getChildCount(); i++) {
                    if (root.getChildAt(i) instanceof CertificateCollectorNode) {
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.registry.WsdlTestStepFactory.canCreate()

    WsdlTestStepFactory[] factories = ( WsdlTestStepFactory[] )registry.getFactories();

    for( int c = 0; c < factories.length; c++ )
    {
      WsdlTestStepFactory factory = factories[c];
      if( factory.canCreate() )
      {
        DefaultActionMapping<WsdlTestStep> actionMapping = new DefaultActionMapping<WsdlTestStep>(
            InsertWsdlTestStepAction.SOAPUI_ACTION_ID, null, factory.getTestStepIconPath(), false, factory );

        actionMapping.setName( factory.getTestStepName() );
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.registry.WsdlTestStepFactory.canCreate()

    WsdlTestStepFactory[] factories = ( WsdlTestStepFactory[] )registry.getFactories();

    for( int c = 0; c < factories.length; c++ )
    {
      WsdlTestStepFactory factory = factories[c];
      if( factory.canCreate() )
      {
        DefaultActionMapping<WsdlTestCase> actionMapping = new DefaultActionMapping<WsdlTestCase>(
            AddWsdlTestStepAction.SOAPUI_ACTION_ID, null, factory.getTestStepIconPath(), false, factory );

        actionMapping.setName( factory.getTestStepName() );
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.registry.WsdlTestStepFactory.canCreate()

        WsdlTestStepRegistry registry = WsdlTestStepRegistry.getInstance();
        WsdlTestStepFactory[] factories = (WsdlTestStepFactory[]) registry.getFactories();

        for (int c = 0; c < factories.length; c++) {
            WsdlTestStepFactory factory = factories[c];
            if (factory.canCreate()) {
                DefaultActionMapping<WsdlTestStep> actionMapping = new DefaultActionMapping<WsdlTestStep>(
                        InsertWsdlTestStepAction.SOAPUI_ACTION_ID, null, factory.getTestStepIconPath(), false, factory);

                actionMapping.setName(factory.getTestStepName());
                actionMapping.setDescription(factory.getTestStepDescription());
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.registry.WsdlTestStepFactory.canCreate()

        WsdlTestStepRegistry registry = WsdlTestStepRegistry.getInstance();
        WsdlTestStepFactory[] factories = (WsdlTestStepFactory[]) registry.getFactories();

        for (int c = 0; c < factories.length; c++) {
            WsdlTestStepFactory factory = factories[c];
            if (factory.canCreate()) {
                DefaultActionMapping<WsdlTestCase> actionMapping = new DefaultActionMapping<WsdlTestCase>(
                        AddWsdlTestStepAction.SOAPUI_ACTION_ID, null, factory.getTestStepIconPath(), false, factory);

                actionMapping.setName(factory.getTestStepName());
                actionMapping.setDescription(factory.getTestStepDescription());
View Full Code Here

Examples of com.gitblit.models.UserModel.canCreate()

          // No Login Available
          error(getString("gb.errorAdminLoginRequired"), true);
        }
        if (isCreate) {
          // Create Repository
          if (!user.canCreate() && !user.canAdmin()) {
            // Only administrators or permitted users may create
            error(getString("gb.errorOnlyAdminMayCreateRepository"), true);
          }
        } else {
          // Edit Repository
View Full Code Here

Examples of com.gitblit.models.UserModel.canCreate()

    String authorization = app().settings().getString(Keys.git.defaultAuthorizationControl, null);
    model.authorizationControl = AuthorizationControl.fromName(authorization);

    GitBlitWebSession session = GitBlitWebSession.get();
    UserModel user = session.getUser();
    if (user != null && user.canCreate() && !user.canAdmin()) {
      // personal create permissions, inject personal repository path
      model.name = user.getPersonalPath() + "/";
      model.projectPath = user.getPersonalPath();
      model.addOwner(user.username);
      // personal repositories are private by default
View Full Code Here

Examples of com.gitblit.models.UserModel.canCreate()

      }

      add(new Label("displayName", user.getDisplayName()));

      add(new BookmarkablePageLink<Void>("newRepository",
          EditRepositoryPage.class).setVisible(user.canAdmin() || user.canCreate()));

      add(new BookmarkablePageLink<Void>("myProfile",
          UserPage.class, WicketUtils.newUsernameParameter(user.username)));

      add(new BookmarkablePageLink<Void>("changePassword",
View Full Code Here

Examples of com.gitblit.models.UserModel.canCreate()

    if (repositories.isEmpty()) {
      add(new Label("repositoryList").setVisible(false));
    } else {
      FilterableRepositoryList repoList = new FilterableRepositoryList("repositoryList", repositories);
      repoList.setAllowCreate(user.canCreate(project.name + "/"));
      add(repoList);
    }
  }

  @Override
View Full Code Here

Examples of com.gitblit.models.UserModel.canCreate()

          setResponsePage(RepositoriesPage.class);
        }
      }.setVisible(app().settings().getBoolean(Keys.git.cacheRepositoryList, true)));
      managementLinks.add(new BookmarkablePageLink<Void>("newRepository", EditRepositoryPage.class));
      add(managementLinks);
    } else if (showManagement && user != null && user.canCreate()) {
      // user can create personal repositories
      managementLinks = new Fragment("managementPanel", "personalLinks", this);
      managementLinks.add(new BookmarkablePageLink<Void>("newRepository", EditRepositoryPage.class));
      add(managementLinks);
    } else {
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.