Package de.iritgo.aktera.persist

Examples of de.iritgo.aktera.persist.PersistentFactory.create()


        persistentManager = (PersistentFactory) req.getService(PersistentFactory.ROLE, "", context);
      }

      ((KeelContextualizable) req).setKeelContext(context);

      Persistent persistent = persistentManager.create(properties.getProperty("persistent"));

      if (properties.getProperty("persistentFilter").equals("true"))
      {
        persistent.setField(properties.getProperty("persistentFilterAttributeName"), properties
                .get("persistentFilterAttribute"));
View Full Code Here


      String fieldName = name.substring(name.lastIndexOf('.') + 1);
      String persistentName = name.substring(0, Math.max(name.indexOf('.'), 0));
      String inputName = name.replace('.', '_');

      Persistent persistent = persistentDescriptor.getPersistent(persistentName);
      Persistent search = persistentManager.create(persistent.getName());

      search.setField(fieldName, value);

      if (search.find())
      {
View Full Code Here

      {
        Persistent persistent = null;

        if (persistentConfig.size() != 0)
        {
          persistent = persistentManager.create(persistentConfig.get(0).getAttribute("name"));

          persistent.setField(persistentConfig.get(0).getAttribute("key"), NumberTools.toIntInstance(ids[i],
                  - 1));

          persistent.find();
View Full Code Here

    try
    {
      pf = getPersistentFactory();

      Persistent serviceSecurity = pf.create("component-security.componentsecurity");

      serviceSecurity.setBypassAuthorizationManager(bypassAm);

      /* Iterate through all the groups that this principal is a member of */
      String oneGroup = null;
View Full Code Here

      for (Iterator j = ue.getGroups().iterator(); j.hasNext();)
      {
        oneGroup = (String) j.next();

        Persistent ruleList = pf.create("component-security.invokationsecurity");

        ruleList.setBypassAuthorizationManager(bypassAm);
        ruleList.setField("component", getComponentName(o.getService()));
        ruleList.setField("instance", ((InstanceSecurable) o.getService()).getInstanceIdentifier());
        ruleList.setField("groupname", oneGroup);
View Full Code Here

    try
    {
      pf = getPersistentFactory();

      Persistent serviceSecurity = pf.create("component-security.instancesecurity");

      serviceSecurity.setBypassAuthorizationManager(bypassAm);

      /* Iterate through all the groups that this principal is a member of */
      String oneGroup = null;
View Full Code Here

            try
            {
              PersistentFactory persistentManager = (PersistentFactory) req.getService(
                      PersistentFactory.ROLE, req.getDomain());

              Persistent preferences = persistentManager.create("aktera.Preferences");

              preferences.setField("userId", new Integer(userEnv.getUid()));
              preferences.find();
              userEnv.setAttribute("sessionPreferences", preferences.getBean());
View Full Code Here

              preferences.setField("userId", new Integer(userEnv.getUid()));
              preferences.find();
              userEnv.setAttribute("sessionPreferences", preferences.getBean());

              Persistent party = persistentManager.create("aktera.Party");

              party.setField("userId", new Integer(userEnv.getUid()));

              if (party.find())
              {
View Full Code Here

              party.setField("userId", new Integer(userEnv.getUid()));

              if (party.find())
              {
                Persistent address = persistentManager.create("aktera.Address");

                address.setField("partyId", party.getField("partyId"));

                if (address.find())
                {
View Full Code Here

      if (userId != - 1)
      {
        PersistentFactory persistentManager = (PersistentFactory) req.getService(PersistentFactory.ROLE, req
                .getDomain());

        Persistent user = persistentManager.create("keel.user");

        user.setField("uid", new Integer(userId));

        if (user.find())
        {
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.