Assigns an ID to resource (support for multi-resource view)
This method is used to assign an ID to a resource. This ID is used in CBCGPAppointmentBaseMultiStorage in order to identify appointments for a specific resource within the storage.