Class AuthorizableValueMap
- java.lang.Object
-
- org.apache.sling.jackrabbit.usermanager.impl.resource.AuthorizableValueMap
-
-
Constructor Summary
Constructors Constructor Description AuthorizableValueMap(org.apache.jackrabbit.api.security.user.Authorizable authorizable, SystemUserManagerPaths systemUserManagerPaths)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<String,Object>>entrySet()Objectget(Object key)<T> Tget(String name, Class<T> type)<T> Tget(String name, T defaultValue)booleanisEmpty()Set<String>keySet()Objectput(String arg0, Object arg1)voidputAll(Map<? extends String,? extends Object> arg0)protected Objectread(String key)protected voidreadFully()Objectremove(Object arg0)intsize()static ObjecttoJavaObject(javax.jcr.Value value)Converts a JCR Value to a corresponding Java ObjectStringtoString()Reads the authorizable map completely and returns the string representation of the cached properties.Collection<Object>values()protected ObjectvaluesToJavaObject(javax.jcr.Value[] values)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
AuthorizableValueMap
public AuthorizableValueMap(org.apache.jackrabbit.api.security.user.Authorizable authorizable, SystemUserManagerPaths systemUserManagerPaths)
-
-
Method Detail
-
get
public <T> T get(String name, Class<T> type)
- Specified by:
getin interfaceorg.apache.sling.api.resource.ValueMap
-
get
public <T> T get(String name, T defaultValue)
- Specified by:
getin interfaceorg.apache.sling.api.resource.ValueMap
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<String,Object>
-
toJavaObject
public static Object toJavaObject(javax.jcr.Value value) throws javax.jcr.RepositoryException
Converts a JCR Value to a corresponding Java Object- Parameters:
value- the JCR Value to convert- Returns:
- the Java Object
- Throws:
javax.jcr.RepositoryException- if the value cannot be converted
-
valuesToJavaObject
protected Object valuesToJavaObject(javax.jcr.Value[] values) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
readFully
protected void readFully()
-
toString
public String toString()
Reads the authorizable map completely and returns the string representation of the cached properties.
-
-