Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
JCR Resource 2.0.6
-
None
Description
It would be nice if the jcr powered persistable value map supports setting mixin node types through the jcr:mixinTypes property:
PersistableValueMap pvm;
String[] types = pvm.get("jcr:mixinTypes", String[].class);
if ( types == null )
else
{ String[] newTypes = new String[types.length + 1]; System.arraycopy(types, 0, newTypes, 0, types.length); newTypes[types.length] = "slingshot:Photo"; pvm.put("jcr:mixinTypes", newTypes); }If a mixin type is several times in the array, it is only applied once.