/*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2016 ForgeRock AS.
*/
/*! Identifier for NSNotificationCenter event broadcast by FRAIdentityDatase when state change occurs. */
extern NSString * const FRAIdentityDatabaseChangedNotification;
/*! Key identifying added objects in FRAIdentityDatabaseChangedNotification userInfo dictionary. */
extern NSString * const FRAIdentityDatabaseChangedNotificationAddedItems;
/*! Key identifying removed objects in FRAIdentityDatabaseChangedNotification userInfo dictionary. */
extern NSString * const FRAIdentityDatabaseChangedNotificationRemovedItems;
/*! Key identifying updated objects in FRAIdentityDatabaseChangedNotification userInfo dictionary. */
extern NSString * const FRAIdentityDatabaseChangedNotificationUpdatedItems;
/*!
* Data Access Object which encapsulates the underlying storage
* mechanism and provides a simplified interface to the caller.
*
* Responsible for manipulating Identity, Mechanism and Notification
* objects in the database.
*/
#pragma mark -
#pragma mark -
/*!
* Save the identity to the database.
* @param identity The identity to save.
* @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.
* @return NO if there was an error whilst processing. YES if the operation completed successfully.
*/
/*!
* Remove the identity from the database.
* @param identity The identity to remove.
* @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.
* @return NO if there was an error whilst processing. YES if the operation completed successfully.
*/
#pragma mark -
/*!
* Save a new mechanism to the database.
* @param mechanism The mechanism to save.
* @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.
* @return NO if there was an error whilst processing. YES if the operation completed successfully.
*/
/*!
* Remove the mechanism from the database.
* @param mechanism The mechanism to remove.
* @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.
* @return NO if there was an error whilst processing. YES if the operation completed successfully.
*/
/*!
* Save changes to an existing mechanism to the database.
* @param mechanism The mechanism to save.
* @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.
* @return NO if there was an error whilst processing. YES if the operation completed successfully.
*/
#pragma mark -
/*!
* Save a new notification to the database.
* @param notification The notification to save.
* @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.
* @return NO if there was an error whilst processing. YES if the operation completed successfully.
*/
/*!
* Remove the notification from the database.
* @param notification The notification to remove.
* @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.
* @return NO if there was an error whilst processing. YES if the operation completed successfully.
*/
/*!
* Save changes to an existing notification to the database.
* @param notification The notification to save.
* @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.
* @return NO if there was an error whilst processing. YES if the operation completed successfully.
*/
@end