Conclusion

If application and user preferences are stored in a directory, they can be shared easily. A user or application can re-create a previous state from a different location or computer, as long as there is network access for LDAP. Preferences can be stored as individual values or as a Java object. They can be identified by unique attribute names or by using the tree structure of the directory along with metainformation. If the number and types of preferences are variable and growing, it may be difficult to maintain unique attributes for each type. This chapter has presented three different strategies for storing a user's application preferences with LDAP; determining which one is appropriate for your application is left to you.

Get LDAP Programming with Java™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.