Examples of Where


Examples of org.apache.isis.applib.annotation.Where

    }

    public ObjectAction getObjectActionThatIsVisibleForIntent(
            final String actionId, final Intent intent) {

        final Where where = rendererContext.getWhere();

        final ObjectAction action;
        try {
            final ObjectSpecification specification = objectAdapter.getSpecification();
            action = specification.getObjectAction(actionId);
View Full Code Here

Examples of org.apache.isis.applib.annotation.Where

    }

    public <T extends ObjectMember> T memberThatIsVisibleForIntent(
            final T objectMember, final MemberType memberType, final Intent intent) {

        final Where where = rendererContext.getWhere();

        final String memberId = objectMember.getId();
        final AuthenticationSession authenticationSession = rendererContext.getAuthenticationSession();
        if (objectMember.isVisible(authenticationSession, objectAdapter, where).isVetoed()) {
            throwNotFoundException(memberId, memberType);
View Full Code Here

Examples of org.apache.isis.applib.annotation.Where

        final JsonRepresentation arguments = getResourceContext().getQueryStringAsJsonRepr();
       
        final ObjectAdapter objectAdapter = getObjectAdapterElseThrowNotFound(domainType, instanceId);
        final DomainResourceHelper helper = getDomainResourceHelper(objectAdapter);

        Where where = getResourceContext().getWhere();
        return helper.invokeAction(actionId, arguments);
    }
View Full Code Here

Examples of org.apache.isis.applib.annotation.Where

    }

    private void addPropertyColumnsIfRequired(final List<IColumn<ObjectAdapter,String>> columns) {
        final ObjectSpecification typeOfSpec = getModel().getTypeOfSpecification();

        final Where whereContext =
                getModel().isParented()
                    ? Where.PARENTED_TABLES
                    : Where.STANDALONE_TABLES;
       
        final ObjectSpecification parentSpecIfAny =
View Full Code Here

Examples of org.apache.isis.applib.annotation.Where

    }

    private void addPropertyColumnsIfRequired(final List<IColumn<ObjectAdapter,String>> columns) {
        final ObjectSpecification typeOfSpec = getModel().getTypeOfSpecification();

        final Where whereContext =
                getModel().isParented()
                    ? Where.PARENTED_TABLES
                    : Where.STANDALONE_TABLES;
       
        final ObjectSpecification parentSpecIfAny =
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.actions.executed.ExecutedFacet.Where

     * executed, either {@link Where#LOCALLY locally} or {@link Where#REMOTELY
     * remotely}.
     */
    private void attachExecutedFacetIfActionMethodNamePrefixed(final ProcessMethodContext processMethodContext) {
        final Method actionMethod = processMethodContext.getMethod();
        final Where where = Where.lookup(actionMethod);
        if (where == null) {
            return;
        }
        final FacetHolder facetedMethod = processMethodContext.getFacetHolder();
        FacetUtil.addFacet(new ExecutedFacetViaNamingConvention(where, facetedMethod));
View Full Code Here

Examples of org.bitbucket.rehei.sparqljava.query.where

  public static void main(String[] args) {

    String shortQuery = Q.prefix("books", "http://example.org/books/")
        .prefix("rdf", "http://example.org/rdf")
        .select("?book ?authorName", new where() {
          {
            $("?book books:author ?author");
            $("?author books:authorName ?authorName");
          }
        }).get();
    System.out.println(shortQuery);

   
    String longQuery = Q
        .base("http://example.org/someWorldOntology#")
        .prefix("rdf",
            "http://www.w3.org/1999/02/22-rdf-syntax-ns#type")
        .prefix("owl", "http://www.w3.org/2002/07/owl#")
        .selectDistinct("?bookTitle ?authorName ?totalAmountOfBooks")
        .from("http://example.org/books/fantasy")
        .fromNamed("http://example.org/people", new where() {
          {
            select("SUM(?book) as ?totalAmountOfBooks",
                new where() {
                  {
                    $(new group() {
                      {
                        $("?book rdf:type <Book>");
                      }
View Full Code Here

Examples of org.eclipse.emf.query.statements.WHERE

          EObjectCondition condition0 = new ExcludeEObjectCondition(
              exclude);

          SELECT statement = new SELECT(new FROM(cataloguge
              .getCatalogueProperties()), new WHERE(condition0
              .AND(condition1.OR(condition2.OR(condition3)))));
          for (Object object : statement.execute()) {
            addTreeItem((TechnicalProperty) object);

          }
View Full Code Here

Examples of org.eclipse.emf.query.statements.WHERE

    NGramCheckEObjectCondition condition = new NGramCheckEObjectCondition(
        ConstraintsPackage.eINSTANCE.getTechnicalProperty_Name(),
        nGramCheckCondition,catalogue );

    SELECT statement = new SELECT(new FROM(catalogue
        .getCatalogueProperties()), new WHERE(condition));
   
    IQueryResult result = statement.execute();

    assertTrue( result.contains(tp1));
    assertFalse( result.contains(tp2));
View Full Code Here

Examples of org.eclipse.emf.query.statements.WHERE

        ConstraintsPackage.eINSTANCE.getTechnicalProperty_Name(),
        nGramCheckCondition,catalogue );


    SELECT statement = new SELECT(new FROM(catalogue
        .getCatalogueProperties()), new WHERE(condition));
   
    IQueryResult result = statement.execute();
   
    assertTrue( result.contains(tp2));
    assertFalse( result.contains(tp1));
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.