Examples of Access


Examples of javax.persistence.Access

    org.hibernate.annotations.AccessType accessTypeAnnotation = element.getAnnotation( org.hibernate.annotations.AccessType.class );
    if ( accessTypeAnnotation != null ) {
      hibernateAccessType = AccessType.getAccessStrategy( accessTypeAnnotation.value() );
    }

    Access access = element.getAnnotation( Access.class );
    if ( access != null ) {
      jpaAccessType = AccessType.getAccessStrategy( access.value() );
    }

    if ( hibernateAccessType != null && jpaAccessType != null && hibernateAccessType != jpaAccessType ) {
      throw new MappingException(
          "Found @Access and @AccessType with conflicting values on a property in class " + annotatedClass.toString()
View Full Code Here

Examples of jease.cms.domain.Access

   * HTTP-Authorization-Header. Returns null if no guard exists or
   * authorization against guard is successful, otherwise the Access-Guard is
   * returned, which should force an unauthorized-response.
   */
  public static Access check(Content content, String authorizationHeader) {
    Access access = getGuard(content);
    if (access != null) {
      String userpass = Crypts
          .decodeBasicAuthorization(authorizationHeader);
      if (userpass == null) {
        return access;
      }
      int index = userpass.indexOf(":");
      String login = userpass.substring(0, index);
      String password = userpass.substring(index + 1);
      if (!(Validations.equals(access.getLogin(), login) && access
          .hasPassword(password))) {
        return access;
      }
    }
    return null;
View Full Code Here

Examples of jease.cms.domain.Access

        cache.put(content, content.getGuard(Access.class));
      } else {
        cache.put(content, NO_ACCESS_GUARD);
      }
    }
    Access access = (Access) cache.get(content);
    return access != NO_ACCESS_GUARD ? access : null;
  }
View Full Code Here

Examples of milk.jpatch.access.AccessPatch.Access

    }
   
    @Override
    public int patch(int flags){
        flags = rest.patch(flags);
        Access a = AccessPatch.getAccess(flags, accessLevel);
        // Erase previous access flags
        flags ^= a.getFlags();
        a = access.patch(a);
        // Add new access flags
        flags |= a.getFlags();
        return flags;
    }
View Full Code Here

Examples of net.sourceforge.js3tream.util.Access

    {
      Log.info("\n");
      return;
    }
   
    Access access = new Access();
   
    /* Get the metadata for the given file */
    GetObjectResult result = null;
   
   
    /* Try a few times to get the object */
    /* Put the file, We'll try a few times */
    int attemptCount = 0;
    while (attemptCount < MAX_S3_READWRITE_ATTEMPTS)
    {
      attemptCount++;
     
      try
      {
       
        long startTime = System.currentTimeMillis();
       
       
        AmazonS3_ServiceLocator locator = new AmazonS3_ServiceLocator();
        AmazonS3SoapBindingStub binding = new AmazonS3SoapBindingStub(new URL(locator.getAmazonS3Address()), locator);
       
        result = binding.getObject(getBucketName(),
                      key,
                      false,
                      true,
                      false,
                      access.getAccessKey(),
                      access.getAccessCalendar(),
                      access.generateSignature("GetObject"),
                      null);
       
       
        long endTime = System.currentTimeMillis();
       
View Full Code Here

Examples of org.apache.wicket.AccessStackPageMap.Access

            else if (pageMap instanceof AccessStackPageMap)
            {
              AccessStackPageMap accessStackPageMap = (AccessStackPageMap)pageMap;
              if (accessStackPageMap.getAccessStack().size() > 0)
              {
                final Access access = accessStackPageMap.getAccessStack().peek();

                final int pageId = Integer.parseInt(Strings.firstPathComponent(
                  requestParameters.getComponentPath(), Component.PATH_SEPARATOR));

                if (pageId != access.getId())
                {
                  // the page is no longer the active page
                  // - ignore this request
                  processRequest = 2;
                }
                else
                {
                  final int version = requestParameters.getVersionNumber();
                  if (version != Page.LATEST_VERSION &&
                    version != access.getVersion())
                  {
                    // version is no longer the active version -
                    // ignore this request
                    processRequest = 2;
                  }
View Full Code Here

Examples of org.auraframework.system.AuraContext.Access

            // continue to try other possibilities
        }
       
        // See if it is one of the scope constants
        try {
            Access acc = Access.valueOf(item.toUpperCase());
            if (access != null && access != acc) {
                throw new InvalidAccessValueException("Access attribute can only specifiy one of GLOBAL, PUBLIC, or PRIVATE"); // or internal
            }
            access = acc;
            return;
View Full Code Here

Examples of org.candlepin.auth.Access

            log.debug("Allowing invokation to proceed with no authentication: {}",
                method.getName());
            return;
        }

        Access defaultAccess = getAssumedAccessType(method);

        // Need to check after examining all parameters to see if we found any:
        boolean foundVerifiedParameters = false;
        Owner owner = null;

        Annotation[][] annotations = method.getParameterAnnotations();
        for (int i = 0; i < annotations.length; i++) {
            for (Annotation a : annotations[i]) {
                if (a instanceof Verify) {
                    foundVerifiedParameters = true;
                    Access requiredAccess = defaultAccess;

                    @SuppressWarnings("rawtypes")
                    Class verifyType = ((Verify) a).value();
                    if (((Verify) a).require() != Access.NONE) {
                        requiredAccess = ((Verify) a).require();
View Full Code Here

Examples of org.jboss.resteasy.keystone.model.Access

   {
      if (username == null) throw new NullPointerException("username is null");
      if (password == null) throw new NullPointerException("password is null");
      if (tokenFactory == null) throw new NullPointerException("idp is null");

      final Access access = obtainToken(projectName);
      ClientRequestFilter tokenFilter = new ClientRequestFilter() {
         volatile Access token = access;

         @Override
         public void filter(ClientRequestContext requestContext) throws IOException
         {
            Access tmp = token;
            if (tmp.getToken().expired())
            {
               synchronized (this)
               {
                  tmp = token;
                  if (tmp.getToken().expired())
                  {
                     token = tmp = obtainToken(projectName);
                  }
               }
            }
            requestContext.getHeaders().putSingle("X-Auth-Token", tmp.getToken().getId());
         }
      };

      target.register(tokenFilter);
      return access;
View Full Code Here

Examples of org.jbpm.context.def.Access

    assertNotNull(variableAccesses);
    assertEquals(3, variableAccesses.size());
    VariableAccess variableAccess = (VariableAccess) variableAccesses.get(0);
    assertNotNull(variableAccesses);
    assertEquals("a", variableAccess.getVariableName());
    assertEquals(new Access("read,write"), variableAccess.getAccess());
    assertEquals("x", variableAccess.getMappedName());
    variableAccess = (VariableAccess) variableAccesses.get(2);
    assertNotNull(variableAccesses);
    assertEquals("c", variableAccess.getMappedName());
  }
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.