featuresDescription = new PersistenceManagerFeaturesDescription()
{
public boolean isUsersAddRemoveSupported()
{
IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType();
return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
isIdentityObjectAddRemoveSupported(objectType);
}
public boolean isGroupsAddRemoveSupported(String groupType)
{
IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType(groupType);
return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
isIdentityObjectAddRemoveSupported(objectType);
}
public boolean isUsersSearchControlSupported(IdentitySearchControl control)
{
IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType();
if (control instanceof IdentityObjectSearchControl)
{
return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
isControlSupported(objectType, (IdentityObjectSearchControl)control);
}
return false;
}
public boolean isUsersSearchControlSupported(Class controlClazz)
{
IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType();
return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
isControlSupported(objectType, controlClazz);
}
public boolean isGroupsSearchControlSupported(String 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(String groupType, Class controlClazz)
{
IdentityObjectType objectType = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType(groupType);
return getSessionContext().getIdentityStoreRepository().getSupportedFeatures().
isControlSupported(objectType, controlClazz);
}
};