com.logicaldoc.web.document
Class FieldPreferences

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.Boolean>
          extended by com.logicaldoc.web.document.FieldPreferences
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Boolean>

public class FieldPreferences
extends java.util.HashMap<java.lang.String,java.lang.Boolean>

Retrieves all document fields preferences for the session user. For each user group will be retrieved all the group custom attributes that begin with "preference.field". For each custom attribute, will be parsed the correspondent value. There two possible phases: 'insert' and 'edit'. The custom value consisting of six digits('0' or '1') corresponding to:

  1. insert hidden
  2. insert readonly
  3. insert mandatory
  4. edit hidden
  5. edit readonly
  6. edit mandatory

Since:
4.0
Author:
Matteo Caruso - Logical Objects
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
FieldPreferences()
           
 
Method Summary
 java.lang.Boolean get(java.lang.Object key)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

FieldPreferences

public FieldPreferences()
Method Detail

get

public java.lang.Boolean get(java.lang.Object key)
Specified by:
get in interface java.util.Map<java.lang.String,java.lang.Boolean>
Overrides:
get in class java.util.HashMap<java.lang.String,java.lang.Boolean>


Copyright © 2008-2010 Logical Objects. All Rights Reserved.