forked from pwm-project/pwm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into macro-support
- Loading branch information
Showing
35 changed files
with
592 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package password.pwm.config; | ||
|
||
public enum PwmSettingProperty { | ||
|
||
ModificationWarning, | ||
|
||
Minimum, | ||
Maximum, | ||
|
||
Form_Types, | ||
|
||
Cert_ImportHandler, | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/java/password/pwm/config/profile/UpdateAttributesProfile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package password.pwm.config.profile; | ||
|
||
import password.pwm.config.PwmSetting; | ||
import password.pwm.config.StoredValue; | ||
import password.pwm.config.stored.StoredConfiguration; | ||
|
||
import java.util.Locale; | ||
import java.util.Map; | ||
|
||
public class UpdateAttributesProfile extends AbstractProfile implements Profile { | ||
|
||
private static final ProfileType PROFILE_TYPE = ProfileType.UpdateAttributes; | ||
|
||
protected UpdateAttributesProfile(String identifier, Map<PwmSetting, StoredValue> storedValueMap) { | ||
super(identifier, storedValueMap); | ||
} | ||
|
||
public static UpdateAttributesProfile makeFromStoredConfiguration(final StoredConfiguration storedConfiguration, final String identifier) { | ||
final Map<PwmSetting,StoredValue> valueMap = makeValueMap(storedConfiguration, identifier, PROFILE_TYPE.getCategory()); | ||
return new UpdateAttributesProfile(identifier, valueMap); | ||
|
||
} | ||
|
||
@Override | ||
public String getDisplayName(Locale locale) | ||
{ | ||
return this.getIdentifier(); | ||
} | ||
|
||
@Override | ||
public ProfileType profileType() { | ||
return PROFILE_TYPE; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.