@Override public void add(T attributedType) throws IdentityManagementException { if (attributedType == null) { throw MESSAGES.nullArgument("AttributedType"); } checkUniqueness(attributedType); try { doAdd(attributedType); addAttributes(identityContext, attributedType); fireAttributedTypeAddedEvent(attributedType); } catch (Exception e) { throw MESSAGES.attributedTypeAddFailed(attributedType, e); } }
@Override public void add(T attributedType) throws IdentityManagementException { if (attributedType == null) { throw MESSAGES.nullArgument("AttributedType"); } checkUniqueness(attributedType); try { doAdd(attributedType); addAttributes(identityContext, attributedType); fireAttributedTypeAddedEvent(attributedType); } catch (Exception e) { throw MESSAGES.attributedTypeAddFailed(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); } }