@Override public void remove(T attributedType) throws IdentityManagementException { if (attributedType == null) { throw MESSAGES.nullArgument("AttributedType"); } checkIfExists(attributedType); try { T storedType = lookupById((Class<T>) attributedType.getClass(), attributedType.getId()); removeAllAttributes(storedType); doRemove(attributedType); fireAttributedTypeRemovedEvent(attributedType); } catch (Exception e) { throw MESSAGES.attributedTypeRemoveFailed(attributedType, e); } }
@Override public void remove(T attributedType) throws IdentityManagementException { if (attributedType == null) { throw MESSAGES.nullArgument("AttributedType"); } checkIfExists(attributedType); try { T storedType = lookupById((Class<T>) attributedType.getClass(), attributedType.getId()); removeAllAttributes(storedType); doRemove(attributedType); fireAttributedTypeRemovedEvent(attributedType); } catch (Exception e) { throw MESSAGES.attributedTypeRemoveFailed(attributedType, e); } }
@Override public void update(T attributedType) throws IdentityManagementException { if (attributedType == null) { throw MESSAGES.nullArgument("AttributedType"); } checkIfExists(attributedType); try { doUpdate(attributedType); T storedType = lookupById((Class<T>) attributedType.getClass(), attributedType.getId()); removeAttributes(identityContext, attributedType, storedType); addAttributes(identityContext, attributedType); fireAttributedTypeUpdatedEvent(attributedType); } catch (Exception e) { throw MESSAGES.attributedTypeUpdateFailed(attributedType, e); } }
@Override public void update(T attributedType) throws IdentityManagementException { if (attributedType == null) { throw MESSAGES.nullArgument("AttributedType"); } checkIfExists(attributedType); try { doUpdate(attributedType); T storedType = lookupById((Class<T>) attributedType.getClass(), attributedType.getId()); removeAttributes(identityContext, attributedType, storedType); addAttributes(identityContext, attributedType); fireAttributedTypeUpdatedEvent(attributedType); } catch (Exception e) { throw MESSAGES.attributedTypeUpdateFailed(attributedType, e); } }