featuresDescription = new PersistenceManagerFeaturesDescription()
{
public boolean isIdentitiesAddRemoveSupported()
{
IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType();
return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
isIdentityObjectAddRemoveSupported(objectType);
}
public boolean isGroupsAddRemoveSupported(GroupType groupType)
{
IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType(groupType);
return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
isIdentityObjectAddRemoveSupported(objectType);
}
public boolean isIdentitiesSearchControlSupported(IdentitySearchControl control)
{
IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType();
if (control instanceof IdentityObjectSearchControl)
{
return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
isControlSupported(objectType, (IdentityObjectSearchControl)control);
}
return false;
}
public boolean isIdentitiesSearchControlSupported(Class controlClazz)
{
IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType();
return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
isControlSupported(objectType, controlClazz);
}
public boolean isGroupsSearchControlSupported(GroupType groupType, IdentitySearchControl control)
{
IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType(groupType);
if (control instanceof IdentityObjectSearchControl)
{
return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
isControlSupported(objectType, (IdentityObjectSearchControl)control);
}
return false;
}
public boolean isGroupsSearchControlSupported(GroupType groupType, Class controlClazz)
{
IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType(groupType);
return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
isControlSupported(objectType, controlClazz);
}
};