Package com.adito.properties.impl.profile

Examples of com.adito.properties.impl.profile.ProfilePropertyKey


        int realmID = sessionInfo.getRealm().getRealmID();
        int navigationContext = sessionInfo.getNavigationContext();
        String defaultView =  navigationContext ==
            SessionInfo.MANAGEMENT_CONSOLE_CONTEXT  
                    ? Property.getProperty(new SystemConfigKey("ui.defaultManagementConsoleViewType"))
                    : Property.getProperty(new ProfilePropertyKey("ui.defaultUserConsoleViewType", sessionInfo));
        if(navigationContext == SessionInfo.USER_CONSOLE_CONTEXT) {
            selectedView = CoreUtil.getCookieValue("ui_view_" + getModel().getId() + "_" + navigationContext, request, defaultView);
           
            if (selectedView == null){
                selectedView = Property.getProperty(new ProfilePropertyKey(CoreUtil.getCurrentPropertyProfileId(request.getSession()),
                                sessionInfo.getUser().getPrincipalName(),
                                "ui.defaultUserConsoleViewType", realmID));
               
                CoreUtil.storeUIState("ui_view_" + getModel().getId() + "_" + navigationContext, defaultView, request, response);
            }
View Full Code Here


        if (baseOn != -1) {
            for (PropertyDefinition def : PropertyClassManager.getInstance()
                            .getPropertyClass(ProfileProperties.NAME)
                            .getDefinitions()) {
                String val = Property.getProperty(new ProfilePropertyKey(baseOn, username, def.getName(), realmID));
                storeGenericProperty(def.getName(), username == null ? "" : username, String.valueOf(id), String.valueOf(realmID), "", val);
            }
        }

        return profile;
View Full Code Here

        if(DefaultAgentManager.getInstance().getSessionByAgentId(ticket)!=null) {
          SessionInfo session = DefaultAgentManager.getInstance().getSessionByAgentId(ticket);
          session.setSession(request.getSession());       
         
          int timeout = Property.getPropertyInt(new ProfilePropertyKey(
            CoreUtil.getCurrentPropertyProfileId(request.getSession()),
            session.getUser().getPrincipalName(), "client.registration.synchronization.timeout", session.getUser().getRealm().getResourceId()));
 
          if (log.isDebugEnabled())
              log.debug("Waiting for agent registration (timeout " + timeout + ")");
View Full Code Here

        return SessionInfo.USER_CONSOLE_CONTEXT | SessionInfo.MANAGEMENT_CONSOLE_CONTEXT;
    }

    public AbstractPropertyKey createKey(PropertyDefinition definition, AbstractPropertiesForm form, SessionInfo sessionInfo) {
        ProfilePropertiesForm f = (ProfilePropertiesForm)form;
        return new ProfilePropertyKey(f.getSelectedPropertyProfile(), null, definition.getName(), sessionInfo.getUser().getRealm().getResourceId());
    }
View Full Code Here

        return SessionInfo.USER_CONSOLE_CONTEXT;
    }

    public AbstractPropertyKey createKey(PropertyDefinition definition, AbstractPropertiesForm form, SessionInfo sessionInfo) {
        ProfilePropertiesForm f = (ProfilePropertiesForm)form;
        return new ProfilePropertyKey(f.getSelectedPropertyProfile(), sessionInfo.getUser().getPrincipalName(), definition.getName(), sessionInfo.getUser().getRealm().getResourceId());
    }
View Full Code Here

        ByteArrayWriter baw = new ByteArrayWriter();
       
        switch(type) {
          case PROFILE:
          {
            baw.writeString(Property.getProperty(new ProfilePropertyKey(name, tunnel.getSession())));
            break;
          }
          case SYSTEM:
          {
            baw.writeString(Property.getProperty(new SystemConfigKey(name)));           
View Full Code Here

            /**
             * LDP - We set the socket timeout to twice the value of the
             * keep-alive interval. This means we should only ever timeout
             * if the agent becomes unresponsive.
             */
            int timeoutMs = Property.getPropertyInt(new ProfilePropertyKey("client.heartbeat.interval", agent.getSession()));
            request.setTunnel(agent, (timeoutMs * 2));
           
          } catch (AgentException e) {
            log.error("Could not create agent tunnel of type " + type, e);
            response.sendError(HttpConstants.RESP_500_INTERNAL_SERVER_ERROR, e.getMessage());
View Full Code Here

TOP

Related Classes of com.adito.properties.impl.profile.ProfilePropertyKey

Copyright © 2018 www.massapicom. 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.