Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
Extra cleanup of related constants and enum values no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ggalmazor committed Jan 11, 2019
1 parent 6d07bea commit 0f411da
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 43 deletions.
Original file line number Diff line number Diff line change
@@ -1,42 +1,38 @@
/*
* Copyright (C) 2011 University of Washington
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

package org.opendatakit.aggregate.constants.common;


public enum PreferencesConsts implements HelpSliderConsts {
GOOGLE("Google API Credentials", "These credentials are used when publishing into Google services."),
ENKETO("Enketo Credentials", "These credentials are used for Enketo webforms integration."),
FEATURES("Aggregate Features",
"These settings affect the operations of the server.<br>" +
"1. Disable faster background actions - check this to reduce AppEngine quota usage");

private String title;
private String content;

private PreferencesConsts(String titleString, String contentString) {
title = titleString;
content = contentString;
}

public String getTitle() {
return title;
}

public String getContent() {
return content;
}
}
/*
* Copyright (C) 2011 University of Washington
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

package org.opendatakit.aggregate.constants.common;


public enum PreferencesConsts implements HelpSliderConsts {
GOOGLE("Google API Credentials", "These credentials are used when publishing into Google services."),
ENKETO("Enketo Credentials", "These credentials are used for Enketo webforms integration.");
private String title;
private String content;

private PreferencesConsts(String titleString, String contentString) {
title = titleString;
content = contentString;
}

public String getTitle() {
return title;
}

public String getContent() {
return content;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public class ServerPreferencesProperties extends CommonFieldsBase {
private static final String SITE_KEY = "SITE_KEY";
private static final String LAST_KNOWN_REALM_STRING = "LAST_KNOWN_REALM_STRING";
private static final String FASTER_WATCHDOG_CYCLE_ENABLED = "FASTER_WATCHDOG_CYCLE_ENABLED";
private static final String FASTER_BACKGROUND_ACTIONS_DISABLED = "FASTER_BACKGROUND_ACTIONS_DISABLED";
private static final String SKIP_MALFORMED_SUBMISSIONS = "SKIP_MALFORMED_SUBMISSIONS";

private static ServerPreferencesProperties relation = null;
Expand Down

0 comments on commit 0f411da

Please sign in to comment.