Examples of Preference


Examples of au.net.causal.projo.annotation.Preference

  public SettingsPropertyMetadata(String name, Type propertyType, EntityMetadata<?> parent, PropertyAccessor accessor,
      Iterable<? extends Annotation> annotations, SettingsEntityMetadata targetEntity)
  {
    super(name, propertyType, parent, accessor, annotations);
   
    Preference preference = getAnnotation(Preference.class);
    if (preference == null || StringUtils.isEmpty(preference.key()))
      key = name;
    else
      key = preference.key();
   
    this.targetEntity = targetEntity;
  }
View Full Code Here

Examples of com.almende.eve.entity.activity.Preference

       
        // store the new interval as preferred
        String newStart = eventActivity.withStatus().getStart();
        String newEnd = eventActivity.withStatus().getEnd();
        if (newStart != null && newEnd != null) {
          Preference preferred = new Preference ();
          preferred.setStart(newStart);
          preferred.setEnd(newEnd);
          preferred.setWeight(WEIGHT_PREFERRED_INTERVAL);

          // overwrite other preferences with this new preference
          // TODO: all preferences are overwritten for now. Behavior should be changed.
          List<Preference> preferences = new ArrayList<Preference>();
          preferences.add(preferred);
View Full Code Here

Examples of com.centraview.preference.Preference

    Vector indIdVec = new Vector();

    try {
      PreferenceHome hm = (PreferenceHome) CVUtility.getHomeObject("com.centraview.preference.PreferenceHome",
          "Preference");
      Preference remote = hm.create();
      remote.setDataSource(dataSource);

      if (typeofModule.equals(Constants.ACTIVITYMODULE)) {
        moduleName = Constants.ACTIVITYMODULE;
      } else if (typeofModule.equals(Constants.ACTIVITYMODULE)) {
        moduleName = Constants.EMAILMODULE;
      }

      indIdVec = remote.getDelegatorIDs(userID, moduleName, typeofoperation);
      indIdVec.addElement((new Integer(userID)).toString());
    } catch (Exception e) {
      logger.error("[getDelegatorIds] Exception thrown.", e);
    }
    return indIdVec;
View Full Code Here

Examples of com.centraview.preference.Preference

    Vector indIdVec = new Vector();

    try {
      PreferenceHome hm = (PreferenceHome) CVUtility.getHomeObject("com.centraview.preference.PreferenceHome",
          "Preference");
      Preference remote = hm.create();
      remote.setDataSource(dataSource);

      // FIXME Delegation of Email through getCalendarDelegatorIds??
      if (typeofModule.equals(Constants.ACTIVITYMODULE)) {
        moduleName = Constants.ACTIVITYMODULE;
      } else if (typeofModule.equals(Constants.ACTIVITYMODULE)) {
        moduleName = Constants.EMAILMODULE;
      }

      indIdVec = remote.getCalendarDelegatorIds(userID, moduleName, typeofoperation);
      if (moduleName.equals(Constants.EMAILMODULE)) {
        indIdVec.addElement((new Integer(userID)).toString());
      }
    } catch (Exception e) {
      logger.error("[getCalendarDelegatorIds] Exception thrown.", e);
View Full Code Here

Examples of com.centraview.preference.Preference

    Calendar calendar;
    TimeZone tz = null;
    try {
      PreferenceHome prefHome = (PreferenceHome)CVUtility.getHomeObject(
          "com.centraview.preference.PreferenceHome", "Preference");
      Preference prefRemote = prefHome.create();
      prefRemote.setDataSource(dataSource);
      UserPrefererences prefs = prefRemote.getUserPreferences(individualId);
      tz = TimeZone.getTimeZone(prefs.getTimeZone());
    } catch (Exception e) {
      logger.error("[getCalendar]: Exception", e);
    }
    if (tz != null) {
View Full Code Here

Examples of com.centraview.preference.Preference

    {
      Boolean syncAsPrivate = (Boolean)syncForm.get("syncAsPrivate");
      String prefValue = (syncAsPrivate != null && syncAsPrivate.booleanValue() == true) ? "YES" : "NO";

      PreferenceHome home = (PreferenceHome)CVUtility.getHomeObject("com.centraview.preference.PreferenceHome", "Preference");
      Preference remote = home.create();
      remote.setDataSource(dataSource);

      int recordsChanged = remote.updateSyncAsPrivatePref(individualID, prefValue);

      // if we successfully updated the preference in the database, now
      // we need to update the preference in the user's UserPrefererence
      // object in the UserObject in the session.
      if (recordsChanged > 0)
View Full Code Here

Examples of com.centraview.preference.Preference

       
        Vector prefsVector = new Vector();
        prefsVector.addElement(prefVO);
       
        PreferenceHome prefHome = (PreferenceHome)CVUtility.getHomeObject("com.centraview.preference.PreferenceHome", "Preference");
        Preference prefRemote = prefHome.create();
        prefRemote.setDataSource(dataSource);
       
        prefRemote.updateUserPreference(individualID, prefsVector);
       
        UserPrefererences userPrefs = userObject.getUserPref();
        userPrefs.setEmailCheckInterval(newValue.intValue());
        userObject.setUserPref(userPrefs);
        session.setAttribute("userobject", userObject);
View Full Code Here

Examples of com.sourcetap.sfa.util.Preference

            timer.timerString(1, "[UIScreenSection.UIScreenSection] Got section");
        }

        // if rowsPerPage = 0, then use the global prefernece ROWS_PER_PAGE.
        if (rowsPerPage <= 0) {
            Preference pref = Preference.getInstance(delegator);
            rowsPerPage = pref.getPreference(userInfo.getPartyId(),
                    userInfo.getAccountId(), PREFERENCE_ROWS_PER_PAGE, 20);
        }

        // Get the uiScreenSectionEntity entities.
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.preference.Preference

   * @return Returns a <code>Preference</code> representing the data in the file.
   * @throws XMLStreamException Thrown if there is an error reading the file.
   */
  public static Preference parsePreferenceFile(XMLStreamReader reader)
      throws XMLStreamException {
    Preference preference = null;

    int eventType = reader.getEventType();
    while (reader.hasNext()) {
      eventType = reader.next();

      if (eventType == XMLStreamConstants.START_ELEMENT) {
        QName elementQName = reader.getName();
        String elementName = elementQName.toString();

        if (ELEMENT_PREFERENCE.equals(elementName)) {
          preference = new Preference();
        }
        else if (ELEMENT_GENERAL.equals(elementName)) {
          StaxPreferenceXmlUtil.parseGeneral(reader, preference);
        }
        else if (ELEMENT_VIEW.equals(elementName)) {
View Full Code Here

Examples of javax.portlet.faces.preference.Preference

    throw new UnsupportedOperationException();
  }

  @Override
  protected Preference getProperty(String name) {
    Preference preference = new PreferenceImpl(portletPreferences, name);

    return preference;
  }
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.