/** * Obtains the mandatory properties for a given userStoreClass * * @param userStoreClass userStoreClass name * @return Property[] of Mandatory Properties */ private Property[] getMandatoryProperties(String userStoreClass) { return UserStoreManagerRegistry.getUserStoreProperties(userStoreClass).getMandatoryProperties(); }
Properties properties = UserStoreManagerRegistry.getUserStoreProperties(className); if (properties != null && properties.getOptionalProperties() != null) { Property[] optionalProperties = properties.getOptionalProperties(); optionalPropertyList.add(uniqueIDProperty); properties.setOptionalProperties( optionalPropertyList.toArray(new Property[optionalPropertyList.size()]));
Properties properties = new Properties(); Property[] mandatoryProperties = null; Property[] optionalProperties = null; optionalProperties = new Property[] {disabled}; properties.setOptionalProperties(optionalProperties); properties.setMandatoryProperties(mandatoryProperties); return properties;
/** * Obtains the mandatory properties for a given userStoreClass * * @param userStoreClass userStoreClass name * @return Property[] of Mandatory Properties */ private Property[] getMandatoryProperties(String userStoreClass) { return UserStoreManagerRegistry.getUserStoreProperties(userStoreClass).getMandatoryProperties(); }
Properties properties = UserStoreManagerRegistry.getUserStoreProperties(className); if (properties != null && properties.getOptionalProperties() != null) { Property[] optionalProperties = properties.getOptionalProperties(); optionalPropertyList.add(uniqueIDProperty); properties.setOptionalProperties( optionalPropertyList.toArray(new Property[optionalPropertyList.size()]));
/** * Get the list of properties from mandatoryProperties list * * @param userStoreClass class name of user store * @return ArrayList consisting of mandatory properties to be encrypted */ private static ArrayList<String> getEncryptPropertyList(String userStoreClass) { //First check for mandatory field with #encrypt Property[] mandatoryProperties = UserStoreManagerRegistry.getUserStoreProperties(userStoreClass). getMandatoryProperties(); ArrayList<String> propertyList = new ArrayList<String>(); for (Property property : mandatoryProperties) { if (property != null) { String propertyName = property.getName(); if (propertyName != null && property.getDescription().contains (UserStoreConfigurationConstants.ENCRYPT_TEXT)) { propertyList.add(propertyName); } } } return propertyList; }
/** * Get the list of properties from mandatoryProperties list * * @param userStoreClass class name of user store * @return ArrayList consisting of mandatory properties to be encrypted */ private static ArrayList<String> getEncryptPropertyList(String userStoreClass) { //First check for mandatory field with #encrypt Property[] mandatoryProperties = UserStoreManagerRegistry.getUserStoreProperties(userStoreClass). getMandatoryProperties(); ArrayList<String> propertyList = new ArrayList<String>(); for (Property property : mandatoryProperties) { if (property != null) { String propertyName = property.getName(); if (propertyName != null && property.getDescription().contains (UserStoreConfigurationConstants.ENCRYPT_TEXT)) { propertyList.add(propertyName); } } } return propertyList; }
/** * Get the list of properties from mandatoryProperties list * * @param userStoreClass class name of user store * @return ArrayList consisting of mandatory properties to be encrypted */ private static ArrayList<String> getEncryptPropertyList(String userStoreClass) { //First check for mandatory field with #encrypt Property[] mandatoryProperties = UserStoreManagerRegistry.getUserStoreProperties(userStoreClass). getMandatoryProperties(); ArrayList<String> propertyList = new ArrayList<String>(); for (Property property : mandatoryProperties) { if (property != null) { String propertyName = property.getName(); if (propertyName != null && property.getDescription().contains (UserStoreConfigurationConstants.ENCRYPT_TEXT)) { propertyList.add(propertyName); } } } return propertyList; }