@Override public void deleteProfileEntry(final SProfileEntry profileEntry) throws SProfileEntryDeletionException { final SProfileLogBuilderImpl logBuilder = getSProfileLog(ActionType.DELETED, "Deleting profile entry"); try { recorder.recordDelete(new DeleteRecord(profileEntry), ENTRY_PROFILE); log(profileEntry.getId(), SQueriableLog.STATUS_OK, logBuilder, "deleteProfileEntry"); } catch (final SRecorderException re) { log(profileEntry.getId(), SQueriableLog.STATUS_FAIL, logBuilder, "deleteProfileEntry"); throw new SProfileEntryDeletionException(re); } }
@Override public SProfile createProfile(final SProfile profile) throws SProfileCreationException { final SProfileLogBuilderImpl logBuilder = getSProfileLog(ActionType.CREATED, "Adding a new profile"); try { recorder.recordInsert(new InsertRecord(profile), PROFILE); log(profile.getId(), SQueriableLog.STATUS_OK, logBuilder, "createProfile"); return profile; } catch (final SRecorderException re) { log(profile.getId(), SQueriableLog.STATUS_FAIL, logBuilder, "createProfile"); throw new SProfileCreationException(re); } }
@Override public SProfile createProfile(final SProfile profile) throws SProfileCreationException { final SProfileLogBuilderImpl logBuilder = getSProfileLog(ActionType.CREATED, "Adding a new profile"); try { recorder.recordInsert(new InsertRecord(profile), PROFILE); log(profile.getId(), SQueriableLog.STATUS_OK, logBuilder, "createProfile"); return profile; } catch (final SRecorderException re) { log(profile.getId(), SQueriableLog.STATUS_FAIL, logBuilder, "createProfile"); throw new SProfileCreationException(re); } }
@Override public SProfileEntry createProfileEntry(final SProfileEntry profileEntry) throws SProfileEntryCreationException { final SProfileLogBuilderImpl logBuilder = getSProfileLog(ActionType.CREATED, "Adding a new pofile entry"); try { recorder.recordInsert(new InsertRecord(profileEntry), ENTRY_PROFILE); log(profileEntry.getId(), SQueriableLog.STATUS_OK, logBuilder, "createProfileEntry"); return profileEntry; } catch (final SRecorderException re) { log(profileEntry.getId(), SQueriableLog.STATUS_FAIL, logBuilder, "createProfileEntry"); throw new SProfileEntryCreationException(re); } }
@Override public SProfileEntry createProfileEntry(final SProfileEntry profileEntry) throws SProfileEntryCreationException { final SProfileLogBuilderImpl logBuilder = getSProfileLog(ActionType.CREATED, "Adding a new pofile entry"); try { recorder.recordInsert(new InsertRecord(profileEntry), ENTRY_PROFILE); log(profileEntry.getId(), SQueriableLog.STATUS_OK, logBuilder, "createProfileEntry"); return profileEntry; } catch (final SRecorderException re) { log(profileEntry.getId(), SQueriableLog.STATUS_FAIL, logBuilder, "createProfileEntry"); throw new SProfileEntryCreationException(re); } }
@Override public void deleteProfileEntry(final SProfileEntry profileEntry) throws SProfileEntryDeletionException { final SProfileLogBuilderImpl logBuilder = getSProfileLog(ActionType.DELETED, "Deleting profile entry"); try { recorder.recordDelete(new DeleteRecord(profileEntry), ENTRY_PROFILE); log(profileEntry.getId(), SQueriableLog.STATUS_OK, logBuilder, "deleteProfileEntry"); } catch (final SRecorderException re) { log(profileEntry.getId(), SQueriableLog.STATUS_FAIL, logBuilder, "deleteProfileEntry"); throw new SProfileEntryDeletionException(re); } }
@Override public SProfile updateProfile(final SProfile sProfile, final EntityUpdateDescriptor descriptor) throws SProfileUpdateException { NullCheckingUtil.checkArgsNotNull(sProfile); final SProfileLogBuilderImpl logBuilder = getSProfileLog(ActionType.UPDATED, "Updating profile"); try { recorder.recordUpdate(UpdateRecord.buildSetFields(sProfile, descriptor), PROFILE); log(sProfile.getId(), SQueriableLog.STATUS_OK, logBuilder, "updateProfile"); } catch (final SRecorderException re) { log(sProfile.getId(), SQueriableLog.STATUS_FAIL, logBuilder, "updateProfile"); throw new SProfileUpdateException(re); } return sProfile; }
@Override public SProfileEntry updateProfileEntry(final SProfileEntry profileEntry, final EntityUpdateDescriptor descriptor) throws SProfileEntryUpdateException { NullCheckingUtil.checkArgsNotNull(profileEntry); final SProfileLogBuilderImpl logBuilder = getSProfileLog(ActionType.UPDATED, "Updating profile entry"); try { recorder.recordUpdate(UpdateRecord.buildSetFields(profileEntry, descriptor), ENTRY_PROFILE); log(profileEntry.getId(), SQueriableLog.STATUS_OK, logBuilder, "updateProfileEntry"); } catch (final SRecorderException re) { log(profileEntry.getId(), SQueriableLog.STATUS_FAIL, logBuilder, "updateProfileEntry"); throw new SProfileEntryUpdateException(re); } return profileEntry; }
@Override public SProfile updateProfile(final SProfile sProfile, final EntityUpdateDescriptor descriptor) throws SProfileUpdateException { NullCheckingUtil.checkArgsNotNull(sProfile); final SProfileLogBuilderImpl logBuilder = getSProfileLog(ActionType.UPDATED, "Updating profile"); try { recorder.recordUpdate(UpdateRecord.buildSetFields(sProfile, descriptor), PROFILE); log(sProfile.getId(), SQueriableLog.STATUS_OK, logBuilder, "updateProfile"); } catch (final SRecorderException re) { log(sProfile.getId(), SQueriableLog.STATUS_FAIL, logBuilder, "updateProfile"); throw new SProfileUpdateException(re); } return sProfile; }
@Override public SProfileEntry updateProfileEntry(final SProfileEntry profileEntry, final EntityUpdateDescriptor descriptor) throws SProfileEntryUpdateException { NullCheckingUtil.checkArgsNotNull(profileEntry); final SProfileLogBuilderImpl logBuilder = getSProfileLog(ActionType.UPDATED, "Updating profile entry"); try { recorder.recordUpdate(UpdateRecord.buildSetFields(profileEntry, descriptor), ENTRY_PROFILE); log(profileEntry.getId(), SQueriableLog.STATUS_OK, logBuilder, "updateProfileEntry"); } catch (final SRecorderException re) { log(profileEntry.getId(), SQueriableLog.STATUS_FAIL, logBuilder, "updateProfileEntry"); throw new SProfileEntryUpdateException(re); } return profileEntry; }
@Override public void deleteProfile(final SProfile profile) throws SProfileDeletionException, SProfileEntryDeletionException, SProfileMemberDeletionException { NullCheckingUtil.checkArgsNotNull(profile); final SProfileLogBuilderImpl logBuilder = getSProfileLog(ActionType.DELETED, "Deleting profile"); try { deleteAllProfileEntriesOfProfile(profile); deleteAllProfileMembersOfProfile(profile); recorder.recordDelete(new DeleteRecord(profile), PROFILE); log(profile.getId(), SQueriableLog.STATUS_OK, logBuilder, "deleteProfile"); } catch (final SRecorderException re) { log(profile.getId(), SQueriableLog.STATUS_FAIL, logBuilder, "deleteProfile"); throw new SProfileDeletionException(re); } }
@Override public void deleteProfile(final SProfile profile) throws SProfileDeletionException, SProfileEntryDeletionException, SProfileMemberDeletionException { NullCheckingUtil.checkArgsNotNull(profile); final SProfileLogBuilderImpl logBuilder = getSProfileLog(ActionType.DELETED, "Deleting profile"); try { deleteAllProfileEntriesOfProfile(profile); deleteAllProfileMembersOfProfile(profile); recorder.recordDelete(new DeleteRecord(profile), PROFILE); log(profile.getId(), SQueriableLog.STATUS_OK, logBuilder, "deleteProfile"); } catch (final SRecorderException re) { log(profile.getId(), SQueriableLog.STATUS_FAIL, logBuilder, "deleteProfile"); throw new SProfileDeletionException(re); } }